PATCH: A testcase for section sizing + orphan placement bugs

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

PATCH: A testcase for section sizing + orphan placement bugs

H.J. Lu-27
I am checking this patch for

http://sourceware.org/ml/binutils/2005-11/msg00343.html

It is to make sure that the PR 2065 fix won't break it.

H.J.
----
2005-12-18  H.J. Lu  <[hidden email]>

        * ld-elf/unknown2.d: New.
        * ld-elf/unknown2.s: Likewise.

--- ld-elf/unknown2.d.shared 2005-12-18 08:08:44.000000000 -0800
+++ ld-elf/unknown2.d 2005-12-18 08:13:29.000000000 -0800
@@ -0,0 +1,7 @@
+#source: unknown2.s
+#ld: -shared
+#readelf: -S
+
+#...
+  \[[ 0-9]+\] \.note.foo[ \t]+NOTE[ \t]+.*
+#pass
--- ld-elf/unknown2.s.shared 2005-12-18 08:08:47.000000000 -0800
+++ ld-elf/unknown2.s 2005-12-18 08:08:17.000000000 -0800
@@ -0,0 +1,6 @@
+ .section .note.foo,"a","note"
+ .space 16
+ .section .data,"aw"
+ .space 3800
+ .section .rodata,"a"
+ .space 4