This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

stabs and relocation


Hi,

I ran into the following issue:
- some .so files I've built (ld -shared...) contain a .rel.stab section
- if I use objcopy to remove some of the symbols in them, objcopy chokes
 on it (it seems, since the .rel.stabs is not linked to a mappable
section, the bfd layer cannot find a correct offset (in the target file)
 to write the .rel.stabs section (it fails with a bad seek operation on
the target file)
- this .rel.stab section is created while linking a .so file

my setup:
Mandrake 6.0 (Linux 2.2.9)
binutils 2.9.1 (also tested with 2.10.1 with the same results)
gcc 2.95.1

so, I wonder if it's logical to get those .rel.stab sections, and if so,
 how should I deal with the .rel.stab / objcopy issue ?
is there a way to get rid of them ? (in most of the cases, the addresses

in the stab section are not used, and the symtab section has to be used
instead, so whether there's a .rel.stabs section doesn't matter much)
of course, I'm looking to something different to simply removing the
rel.stabs section (when possible)


TIA


---------------
Eric Pouech
(http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow",
Vice President Dan Quayle

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]