From e6b39f6f8e5418ba2a237ef16460c22b49833ca6 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 6 Dec 2019 13:38:42 +1030 Subject: [PATCH] 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. --- ld/ChangeLog | 7 +++++++ ld/testsuite/ld-mips-elf/eh-frame1-n32.d | 2 +- ld/testsuite/ld-mips-elf/eh-frame1-n64.d | 2 +- ld/testsuite/ld-mips-elf/eh-frame2-n32.d | 2 +- ld/testsuite/ld-mips-elf/eh-frame2-n64.d | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index eb15dacdbdb..8c07ff6bc70 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2019-12-06 Alan Modra + + * 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 PR 25244 diff --git a/ld/testsuite/ld-mips-elf/eh-frame1-n32.d b/ld/testsuite/ld-mips-elf/eh-frame1-n32.d index 9e1a0d633a1..547739179a5 100644 --- a/ld/testsuite/ld-mips-elf/eh-frame1-n32.d +++ b/ld/testsuite/ld-mips-elf/eh-frame1-n32.d @@ -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' .*: diff --git a/ld/testsuite/ld-mips-elf/eh-frame1-n64.d b/ld/testsuite/ld-mips-elf/eh-frame1-n64.d index b1b7d9d31dd..a6d4f925198 100644 --- a/ld/testsuite/ld-mips-elf/eh-frame1-n64.d +++ b/ld/testsuite/ld-mips-elf/eh-frame1-n64.d @@ -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' .*: diff --git a/ld/testsuite/ld-mips-elf/eh-frame2-n32.d b/ld/testsuite/ld-mips-elf/eh-frame2-n32.d index 556ef6cf59a..d7def348dd8 100644 --- a/ld/testsuite/ld-mips-elf/eh-frame2-n32.d +++ b/ld/testsuite/ld-mips-elf/eh-frame2-n32.d @@ -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' .*: diff --git a/ld/testsuite/ld-mips-elf/eh-frame2-n64.d b/ld/testsuite/ld-mips-elf/eh-frame2-n64.d index b43664f19cf..300b41e782c 100644 --- a/ld/testsuite/ld-mips-elf/eh-frame2-n64.d +++ b/ld/testsuite/ld-mips-elf/eh-frame2-n64.d @@ -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' .*: -- 2.30.2