[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v8.1 14/27] xsplice, symbols: Implement symbol name resolution on address.



> As per my earlier reply to Konrad, there must be more to this. I.e.
> "normal" local symbols won't get dropped together with relocations
> referencing them getting resolved.

Correct. These .LCx symbols only cover .rodata.* sections. Any other
local symbols:

[konrad@x230 x86]$ readelf --symbols prelink.o |grep bad_hypercall
 8946: 0000000000145549     0 NOTYPE  LOCAL  DEFAULT    1 compat_bad_hypercall
 8967: 0000000000145c79     0 NOTYPE  LOCAL  DEFAULT    1 bad_hypercall

don't get dropped and do show up in the binary (nm --defined finds them).

While .LC matches the type:
 9147: 00000000000008c0     0 NOTYPE  LOCAL  DEFAULT   33 .LC5

They are in four other sections:
konrad@x230 x86]$ readelf --symbols prelink.o |grep LC | awk '{print
$7}' | sort | uniq
22
23
33
34

[22] .rodata.str1.1    PROGBITS         0000000000000000  0019d500
      000000000000a088  0000000000000001 AMS       0     0     1
 [23] .rodata.str1.8    PROGBITS         0000000000000000  001a7588
      0000000000020a31  0000000000000001 AMS       0     0     8
 [33] .init.rodata.str1 PROGBITS         0000000000000000  001d5a78
      0000000000000a1e  0000000000000001 AMS       0     0     1
 [34] .init.rodata.str1 PROGBITS         0000000000000000  001d6498
      0000000000002331  0000000000000001 AMS       0     0     8

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.