This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: "ld -r" is broken
On Sat, Dec 17, 2005 at 12:46:44PM +1030, Alan Modra wrote:
> On Fri, Dec 16, 2005 at 05:46:40PM -0800, H. J. Lu wrote:
> > bad.o is generated by the new linker. Alan, can you take a look?
>
> Sorry, not immediately. I'm just about to leave for a week at the
> beach with my family.
>
I opened a PR:
http://sourceware.org/bugzilla/show_bug.cgi?id=2065
and I am checking this testcase.
H.J.
---
2005-12-18 H.J. Lu <hongjiu.lu@intel.com>
PR ld/2065
* ld-elf/orphan2.d: New file.
* ld-elf/orphan2.s: Likewise.
--- ld/testsuite/ld-elf/orphan2.d.xx 2005-12-18 14:32:46.000000000 -0800
+++ ld/testsuite/ld-elf/orphan2.d 2005-12-18 14:33:49.000000000 -0800
@@ -0,0 +1,8 @@
+#source: orphan2.s
+#ld: -r
+#readelf: -S --wide
+
+#...
+ \[[ 0-9]+\] \.text[ \t]+PROGBITS[ \t0-9a-f]+AX?.*
+ \[[ 0-9]+\] \.modinfo[ \t]+PROGBITS[ \t0-9a-f]+A.*
+#pass
--- ld/testsuite/ld-elf/orphan2.s.xx 2005-12-18 14:32:23.000000000 -0800
+++ ld/testsuite/ld-elf/orphan2.s 2005-12-18 14:31:56.000000000 -0800
@@ -0,0 +1,4 @@
+ .text
+ .long 0
+ .section .modinfo,"a","progbits"
+ .long 0