old-cross-binutils/ld/testsuite
Alan Modra 4199e3b866 non-PIC references to __ehdr_start in pie and shared
Rather than hacking every backend to not discard dynamic relocations
against an undefined hidden __ehdr_start, make it appear to be defined
early.  We want __ehdr_start hidden before size_dynamic_sections so
that it isn't put in .dynsym, but we do need the dynamic relocations
for a PIE or shared library with a non-PIC reference.  Defining it
early is wrong if we don't actually define the symbol later to its
proper value.  (In some cases we want to leave the symbol undefined,
for example, when the ELF header isn't loaded, and we don't have this
infomation available in before_allocation.)

ld/
	* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
	__ehdr_start before size_dynamic_sections and restore afterwards.
ld/testsuite/
	* ld-elf/ehdr_start-shared.d: New.
	* ld-elf/ehdr_start-userdef.d: xfail frv.
	* ld-elf/ehdr_start-weak.d: Likewise.
	* ld-elf/ehdr_start.d: Likewise.
2014-01-15 22:23:16 +10:30
..
config Add HOSTING_SLIBS and use it for -pie 2013-11-26 11:17:08 -08:00
ld-aarch64 ld/testsuite/ld-aarch64: Fixup IFUNC tests to work on all targets 2013-12-11 21:05:36 +00:00
ld-alpha * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-arm ld/ARM: Fix script-type testsuite failure. 2013-11-14 08:39:59 +00:00
ld-auto-import
ld-bootstrap
ld-cdtest
ld-checks
ld-cris ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
ld-crx
ld-cygwin
ld-d10v
ld-discard
ld-elf non-PIC references to __ehdr_start in pie and shared 2014-01-15 22:23:16 +10:30
ld-elfcomm
ld-elfvers Allow for extra st_other readelf output in ld testsuite 2013-11-04 10:18:47 +10:30
ld-elfvsb gas/testsuite/ChangeLog: 2013-03-15 17:55:03 +00:00
ld-elfweak * ld-elfvers/vers.exp: Add -Wl,--no-as-needed to all tests 2013-03-20 02:28:17 +00:00
ld-fastcall
ld-frv * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-gc * archures.c: Add some more MSP430 machine numbers. 2013-05-02 21:06:15 +00:00
ld-h8300 * elf32-h8300 (h8_relax_section): Add new relaxation of mov 2013-03-21 16:08:07 +00:00
ld-i386 Update x86 nacl tests for section alignment change 2013-06-04 16:08:51 +00:00
ld-ia64 Pass ignored unresolved relocations to ld backend 2013-11-05 10:29:44 -08:00
ld-ifunc Allow for extra st_other readelf output in ld testsuite 2013-11-04 10:18:47 +10:30
ld-libs * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-linkonce
ld-m68hc11
ld-m68k * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-mep
ld-metag * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-mips-elf binutils/testsuite/ 2013-11-27 09:11:06 +00:00
ld-misc
ld-mmix ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
ld-mn10300 * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-nds32 Add support for Andes NDS32: 2013-12-13 11:52:32 +00:00
ld-nios2
ld-pe strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
ld-pie Set ET_EXEC for -pie -Ttext-segment= 2013-12-12 07:41:27 -08:00
ld-plugin Add and use check_lto_shared_available 2014-01-09 09:01:53 -08:00
ld-powerpc Edit ELFv2 global entry prologue to non-PIC 2013-11-04 10:21:32 +10:30
ld-s390 2013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2013-07-05 09:51:00 +00:00
ld-scripts ld crossref test fix 2013-11-04 10:17:55 +10:30
ld-selective
ld-sh ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
ld-shared gas/testsuite/ChangeLog: 2013-03-15 17:55:03 +00:00
ld-size ld/testsuite/ 2013-06-04 19:24:10 +00:00
ld-sparc * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-spu
ld-srec * archures.c: Add some more MSP430 machine numbers. 2013-05-02 21:06:15 +00:00
ld-tic6x * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-tilegx * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-tilepro * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-undefined * archures.c: Add some more MSP430 machine numbers. 2013-05-02 21:06:15 +00:00
ld-unique Set unique_global only for definition 2013-02-22 01:20:48 +00:00
ld-v850
ld-vax-elf * ld-vax-elf/export-class-call.dd: New test. 2013-07-27 22:28:29 +00:00
ld-versados
ld-vxworks
ld-x86-64 Don't adjust LOAD segment to match GNU_RELRO segment 2014-01-10 21:49:56 +10:30
ld-xc16x * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-xstormy16 * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
ld-xtensa * lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass 2013-02-19 01:10:06 +00:00
lib * lib/ld-lib.exp (default_ld_link): Remove support for ldflags. 2014-01-14 13:09:22 +00:00
ChangeLog non-PIC references to __ehdr_start in pie and shared 2014-01-15 22:23:16 +10:30
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013 New Year - binutils ChangeLog rotation 2014-01-08 05:32:12 -08:00
ChangeLog-9303