Re: Only give FDE encoding warnings if --eh-frame-hdr was specified.

For mips*-linux targets, fixes the following fails.
FAIL: MIPS eh-frame 1, n32
FAIL: MIPS eh-frame 1, n64
FAIL: MIPS eh-frame 2, n32
FAIL: MIPS eh-frame 2, n64

	* testsuite/ld-mips-elf/eh-frame1-n32.d: Pass --eh-frame-hdr to ld.
	* testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
	* testsuite/ld-mips-elf/eh-frame2-n32.d: Likewise.
	* testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
This commit is contained in:
Alan Modra 2019-12-06 13:38:42 +10:30
parent c7d12402bd
commit e6b39f6f8e
5 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2019-12-06 Alan Modra <amodra@gmail.com>
* testsuite/ld-mips-elf/eh-frame1-n32.d: Pass --eh-frame-hdr to ld.
* testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
* testsuite/ld-mips-elf/eh-frame2-n32.d: Likewise.
* testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
2019-12-05 Alan Modra <amodra@gmail.com>
PR 25244

View File

@ -3,7 +3,7 @@
#source: eh-frame1.s
#as: --defsym alignment=2 --defsym fill=0x40
#readelf: --relocs -wf
#ld: -shared -Teh-frame1.ld
#ld: -shared --eh-frame-hdr -Teh-frame1.ld
#warning: FDE encoding in.*prevents \.eh_frame_hdr table being created.
Relocation section '\.rel\.dyn' .*:

View File

@ -3,7 +3,7 @@
#source: eh-frame1.s
#as: --defsym alignment=3 --defsym fill=0x40
#readelf: --relocs -wf
#ld: -shared -Teh-frame1.ld
#ld: -shared --eh-frame-hdr -Teh-frame1.ld
#warning: FDE encoding in.*prevents \.eh_frame_hdr table being created.
Relocation section '\.rel\.dyn' .*:

View File

@ -3,7 +3,7 @@
#source: eh-frame1.s
#as: --defsym alignment=2 --defsym fill=0
#readelf: --relocs -wf
#ld: -shared -Teh-frame1.ld
#ld: -shared --eh-frame-hdr -Teh-frame1.ld
#warning: FDE encoding in.*prevents \.eh_frame_hdr table being created.
Relocation section '\.rel\.dyn' .*:

View File

@ -3,7 +3,7 @@
#source: eh-frame1.s
#as: --defsym alignment=3 --defsym fill=0
#readelf: --relocs -wf
#ld: -shared -Teh-frame1.ld
#ld: -shared --eh-frame-hdr -Teh-frame1.ld
#warning: FDE encoding in.*prevents \.eh_frame_hdr table being created.
Relocation section '\.rel\.dyn' .*: