public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: PR ld/3103: ld lma assignment change changes OVERLAY
@ 2006-08-23  5:08 H. J. Lu
  2006-08-23  9:57 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: H. J. Lu @ 2006-08-23  5:08 UTC (permalink / raw)
  To: binutils

This patch adds a testcase for PR ld/3103 where the section index of
a symbol isn't ABS.


H.J.
---
2006-08-22  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/3103
	* ld-elf/overlay.d: New file.
	* ld-elf/overlay.s: Likewise.
	* ld-elf/overlay.t: Likewise.

--- ld/testsuite/ld-elf/overlay.d.overlay	2006-08-22 20:29:04.000000000 -0700
+++ ld/testsuite/ld-elf/overlay.d	2006-08-22 20:27:46.000000000 -0700
@@ -0,0 +1,12 @@
+# ld: -T overlay.t
+#readelf: -s
+
+#...
+[ 	]+[0-9]+:[ 	]+0*4000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+ABS __load_start_text1
+#...
+[ 	]+[0-9]+:[ 	]+0*4010[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+ABS __load_start_text2
+#...
+[ 	]+[0-9]+:[ 	]+0*4030[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+ABS __load_stop_text2
+#...
+[ 	]+[0-9]+:[ 	]+0*4010[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+ABS __load_stop_text1
+#pass
--- ld/testsuite/ld-elf/overlay.s.overlay	2006-08-22 20:29:04.000000000 -0700
+++ ld/testsuite/ld-elf/overlay.s	2006-08-22 20:10:56.000000000 -0700
@@ -0,0 +1,6 @@
+	.section .text1,"ax",%progbits
+	.space 0x10
+	.section .text2,"ax",%progbits
+	.space 0x20
+	.text
+	.space 0x30
--- ld/testsuite/ld-elf/overlay.t.overlay	2006-08-22 20:29:04.000000000 -0700
+++ ld/testsuite/ld-elf/overlay.t	2006-08-22 20:13:45.000000000 -0700
@@ -0,0 +1,10 @@
+SECTIONS
+{
+  .text : { *(.text) }
+  OVERLAY 0x1000 : AT (0x4000)
+  {
+    .text1 {*(.text1)}
+    .text2 {*(.text2)}
+  }
+  /DISCARD/ : { *(.*) }
+}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: PR ld/3103: ld lma assignment change changes OVERLAY
  2006-08-23  5:08 PATCH: PR ld/3103: ld lma assignment change changes OVERLAY H. J. Lu
@ 2006-08-23  9:57 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2006-08-23  9:57 UTC (permalink / raw)
  To: H. J. Lu; +Cc: binutils

On Tue, Aug 22, 2006 at 08:46:54PM -0700, H. J. Lu wrote:
> 	PR ld/3103
> 	* ld-elf/overlay.d: New file.
> 	* ld-elf/overlay.s: Likewise.
> 	* ld-elf/overlay.t: Likewise.

OK.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-23  5:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-23  5:08 PATCH: PR ld/3103: ld lma assignment change changes OVERLAY H. J. Lu
2006-08-23  9:57 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).