This is the mail archive of the binutils@sourceware.org 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] |
Other format: | [Raw text] |
I've committed the following patch to fix PR 19291. Gold was not correctly setting the symbol value for local symbols in a relocatable link. Normally, output sections in a relocatable link are at virtual address 0, and symbol values do not need any adjustment. In the rare case where an output section has a non-zero address (the result of using a linker script), we need to subtract the section start address. -cary 2015-11-25 Cary Coutant <ccoutant@gmail.com> gold/ PR gold/19291 * object.cc (Sized_relobj_file::write_local_symbols): If relocatable, subtract section address from symbol value.
Attachment:
pr19291.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |