This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] i386: Force symbol dynamic if it isn't undefined weak
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 24 Apr 2017 18:11:00 -0400
- Subject: [binutils-gdb] i386: Force symbol dynamic if it isn't undefined weak
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 0dc9a308a1ec9675bf6b33bae9e8b1faa0bad9ed ***
Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 0dc9a308a1ec9675bf6b33bae9e8b1faa0bad9ed
i386: Force symbol dynamic if it isn't undefined weak
Force symbol dynamic if it isn't undefined weak. Generate R_386_RELATIVE
relocation for R_386_GOT32 relocation against non-dynamic symbol in PIC.
PR ld/21402
* elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't
undefined weak symbol, don't make it dynamic.
(elf_i386_relocate_section): If a symbol isn't dynamic in PIC,
set no_finish_dynamic_symbol and generate R_386_RELATIVE
relocation for R_386_GOT32.