PATCH: PR ld/3958: ELF linker failed to handle relocation against STN_UNDEF
Alan Modra
amodra@bigpond.net.au
Mon Mar 5 23:52:00 GMT 2007
More information about the Binutils mailing list
Mon Mar 5 23:52:00 GMT 2007
- Previous message (by thread): PATCH: PR ld/3958: ELF linker failed to handle relocation against STN_UNDEF
- Next message (by thread): PATCH: PR ld/3958: ELF linker failed to handle relocation against STN_UNDEF
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Mar 03, 2007 at 03:04:22PM -0800, H. J. Lu wrote: > But we shouldn't use STN_UNDEF to indicate relocations > against symbols from removed input sections since STN_UNDEF simply > means 0 as the symbol value for relocation. Agreed. We should instead either relocate against the corresponding symbol from the kept section and emit a reloc against that symbol, or zero the section contents and emit an R_*_NONE reloc. The difficulty is that this means touching all the ELF backend relocate_section functions, because we need the reloc howto function to know which bits need zeroing. Also, the section contents will need to be cleared on a relocatable link. I suppose I should look at doing this, since it was my idea to use a reloc against STN_UNDEF as a means of passing the info through ld -r. -- Alan Modra IBM OzLabs - Linux Technology Centre
- Previous message (by thread): PATCH: PR ld/3958: ELF linker failed to handle relocation against STN_UNDEF
- Next message (by thread): PATCH: PR ld/3958: ELF linker failed to handle relocation against STN_UNDEF
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list