aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-09-22 06:45:39 +0000
committerAlan Modra <amodra@gmail.com>2004-09-22 06:45:39 +0000
commitb301b24869fffd3b6149f27b3ebadaaf8865e461 (patch)
tree1f3f52bf178a6098a7aa6d66dfe7f581d74628b1 /ld/testsuite
parentba52c19a30a809ef2c9d943507203e5c5fd82612 (diff)
downloadgdb-b301b24869fffd3b6149f27b3ebadaaf8865e461.zip
gdb-b301b24869fffd3b6149f27b3ebadaaf8865e461.tar.gz
gdb-b301b24869fffd3b6149f27b3ebadaaf8865e461.tar.bz2
bfd/
* elf.c (IS_LOADED): Define. (assign_file_positions_for_segments): Don't round up file offset of PT_LOAD segments containing no SEC_LOAD sections, instead round down. Delete code handling link script adjustment of lma. Do the adjust in later code handling similar ajustments. Remove dead code error check. Warn if section lma would require a negative offset adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz. Use p_vaddr + p_memsz inside section loop in place of voff. Don't update voff in section loop. Change voff in segment loop to be an adjustment on top of "off". Set sec->filepos and update "off" later. Test for loadable sections consistently using IS_LOADED. Similarly, test for alloc-only sections other than .tbss consistently. Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME. Tidy PT_NOTE handling. Use %B and %A in error messages. (assign_file_positions_except_relocs): Use %B in error message. ld/testsuite/ * ld-scripts/overlay-size.d: Don't check .mbss lma. * ld-sh/sh64/mix1.xd: Update for changed .bss file offset. * ld-sh/sh64/shdl32.xd: Likewise. * ld-sh/sh64/shdl64.xd: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-scripts/overlay-size.d2
-rw-r--r--ld/testsuite/ld-sh/sh64/mix1.xd2
-rw-r--r--ld/testsuite/ld-sh/sh64/shdl32.xd2
-rw-r--r--ld/testsuite/ld-sh/sh64/shdl64.xd2
5 files changed, 11 insertions, 4 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index bc25d1c..428bc22 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2004-09-22 Alan Modra <amodra@bigpond.net.au>
+
+ * ld-scripts/overlay-size.d: Don't check .mbss lma.
+ * ld-sh/sh64/mix1.xd: Update for changed .bss file offset.
+ * ld-sh/sh64/shdl32.xd: Likewise.
+ * ld-sh/sh64/shdl64.xd: Likewise.
+
2004-09-17 Paul Brook <paul@codesourcery.com>
* ld-arm/arm-target1-{abs,rel}.d}: New files.
diff --git a/ld/testsuite/ld-scripts/overlay-size.d b/ld/testsuite/ld-scripts/overlay-size.d
index cf1f5e8..f54f56d 100644
--- a/ld/testsuite/ld-scripts/overlay-size.d
+++ b/ld/testsuite/ld-scripts/overlay-size.d
@@ -13,7 +13,7 @@
#...
3 \.mtext +0+020 +0+10000 +0+30000 .*
#...
- 4 \.mbss +0+230 +0+20030 +0+20060 .*
+ 4 \.mbss +0+230 +0+20030 .*
#...
5 \.text1 +0+080 +0+10020 +0+30020 .*
#...
diff --git a/ld/testsuite/ld-sh/sh64/mix1.xd b/ld/testsuite/ld-sh/sh64/mix1.xd
index a5c732b..005e161 100644
--- a/ld/testsuite/ld-sh/sh64/mix1.xd
+++ b/ld/testsuite/ld-sh/sh64/mix1.xd
@@ -24,7 +24,7 @@ Idx Name Size VMA LMA File off Algn
CONTENTS, ALLOC, LOAD, DATA
4 \.sbss 00000000 0+10d8 0+10d8 00000184 2\*\*0
CONTENTS
- 5 \.bss 00000000 0+10d8 0+10d8 00000158 2\*\*0
+ 5 \.bss 00000000 0+10d8 0+10d8 00000154 2\*\*0
ALLOC
6 \.stack 00000004 0+80000 0+80000 00000180 2\*\*0
CONTENTS, ALLOC, LOAD, DATA
diff --git a/ld/testsuite/ld-sh/sh64/shdl32.xd b/ld/testsuite/ld-sh/sh64/shdl32.xd
index 663cfc8..0e46444 100644
--- a/ld/testsuite/ld-sh/sh64/shdl32.xd
+++ b/ld/testsuite/ld-sh/sh64/shdl32.xd
@@ -26,7 +26,7 @@ Idx Name Size VMA LMA File off Algn
CONTENTS, ALLOC, LOAD, DATA
5 \.sbss 0+ 0+1560 0+1560 0+604 2\*\*0
CONTENTS
- 6 \.bss 0+ 0+1560 0+1560 0+5e0 2\*\*0
+ 6 \.bss 0+ 0+1560 0+1560 0+5dc 2\*\*0
ALLOC
7 \.stack 0+4 0+80000 0+80000 0+600 2\*\*0
CONTENTS, ALLOC, LOAD, DATA
diff --git a/ld/testsuite/ld-sh/sh64/shdl64.xd b/ld/testsuite/ld-sh/sh64/shdl64.xd
index 26ae839..48826c3 100644
--- a/ld/testsuite/ld-sh/sh64/shdl64.xd
+++ b/ld/testsuite/ld-sh/sh64/shdl64.xd
@@ -26,7 +26,7 @@ Idx Name Size VMA LMA File off Algn
CONTENTS, ALLOC, LOAD, DATA
5 \.sbss 0+ 0+1560 0+1560 0+604 2\*\*0
CONTENTS
- 6 \.bss 0+ 0+1560 0+1560 0+5e0 2\*\*0
+ 6 \.bss 0+ 0+1560 0+1560 0+5dc 2\*\*0
ALLOC
7 \.stack 0+4 0+80000 0+80000 0+600 2\*\*0
CONTENTS, ALLOC, LOAD, DATA