This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Only give FDE encoding warnings if --eh-frame-hdr was specified.
- From: Alan Modra <amodra at gmail dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 6 Dec 2019 17:57:32 +1030
- Subject: Re: [PATCH] Only give FDE encoding warnings if --eh-frame-hdr was specified.
- References: <d4e0b81e-7746-352d-7fd1-85eaf9848031@codesourcery.com>
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.
diff --git a/ld/testsuite/ld-mips-elf/eh-frame1-n32.d b/ld/testsuite/ld-mips-elf/eh-frame1-n32.d
index 9e1a0d633a..547739179a 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 b1b7d9d31d..a6d4f92519 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 556ef6cf59..d7def348dd 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 b43664f19c..300b41e782 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' .*:
--
Alan Modra
Australia Development Lab, IBM