aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-06-15 15:13:41 +0000
committerAlan Modra <amodra@gmail.com>2012-06-15 15:13:41 +0000
commitd2667025dd30611514810c28bee9709e4623012a (patch)
tree7364422fa955cf289aef9008298bb0bc79394d65 /ld/testsuite/ld-sh
parent8e09ad05eda21f6772d6bcca1eb8b42e5d77be03 (diff)
downloadgdb-d2667025dd30611514810c28bee9709e4623012a.zip
gdb-d2667025dd30611514810c28bee9709e4623012a.tar.gz
gdb-d2667025dd30611514810c28bee9709e4623012a.tar.bz2
ld/
* ldlang.h (lang_output_section_statement_type): Add after_end field. (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete. (section_for_dot): Declare. * ldlang.c (lang_size_sections_1): Correct comment. (current_section): Move earlier. (current_assign, prefer_next_section): New static vars. (lang_do_assignments_1): Add found_end param. Detect _end assignment to set found_end. Set os->after_end. Set above statics. (lang_do_assignments): Adjust lang_do_assignments_1 call. Init vars. (section_for_dot): New function. (lang_set_startof): Don't make an absolute symbol. (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete. * ldexp.c (new_rel_from_abs): Use section_for_dot. * emultempl/lnk960.em (symbol_at_beginning_of): New function. (symbol_at_end_of): Likewise. (lnk960_after_allocation): Use them. * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and likewise before __bss_start. ld/testsuite/ Update far too many tests.
Diffstat (limited to 'ld/testsuite/ld-sh')
-rw-r--r--ld/testsuite/ld-sh/sh64/abi32.xd6
-rw-r--r--ld/testsuite/ld-sh/sh64/abi64.xd6
-rw-r--r--ld/testsuite/ld-sh/sh64/cmpct1.xd6
-rw-r--r--ld/testsuite/ld-sh/sh64/crange1.rd6
-rw-r--r--ld/testsuite/ld-sh/sh64/crange2.rd6
-rw-r--r--ld/testsuite/ld-sh/sh64/crange3-cmpct.rd6
-rw-r--r--ld/testsuite/ld-sh/sh64/crange3-media.rd6
-rw-r--r--ld/testsuite/ld-sh/sh64/crange3.rd6
-rw-r--r--ld/testsuite/ld-sh/sh64/mix1.xd6
-rw-r--r--ld/testsuite/ld-sh/sh64/mix2.xd6
-rw-r--r--ld/testsuite/ld-sh/sh64/shdl32.xd6
-rw-r--r--ld/testsuite/ld-sh/sh64/shdl64.xd6
12 files changed, 36 insertions, 36 deletions
diff --git a/ld/testsuite/ld-sh/sh64/abi32.xd b/ld/testsuite/ld-sh/sh64/abi32.xd
index 34bf961..f451b81 100644
--- a/ld/testsuite/ld-sh/sh64/abi32.xd
+++ b/ld/testsuite/ld-sh/sh64/abi32.xd
@@ -35,13 +35,13 @@ SYMBOL TABLE:
0+10e8 g \.data 0+ baz
0+10e8 g .* 0+ ___dtors
0+105c g \.text 0+ 0x04 xyzzy
-0+1100 g \*ABS\* 0+ __bss_start
+0+1100 g \.data 0+ __bss_start
0+10e8 g .* 0+ ___ctors_end
0+10f0 g \.data 0+ baz2
0+10e8 g .* 0+ ___ctors
0+1000 g \.text 0+ 0x04 foo
-0+1100 g \*ABS\* 0+ _edata
-0+1100 g \*ABS\* 0+ _end
+0+1100 g \.data 0+ _edata
+0+1100 g \.data 0+ _end
0+1010 g \.text 0+ 0x04 start
0+100c g \.text 0+ 0x04 bar
0+80000 g \.stack 0+ _stack
diff --git a/ld/testsuite/ld-sh/sh64/abi64.xd b/ld/testsuite/ld-sh/sh64/abi64.xd
index 12fdc5a..7018739 100644
--- a/ld/testsuite/ld-sh/sh64/abi64.xd
+++ b/ld/testsuite/ld-sh/sh64/abi64.xd
@@ -34,13 +34,13 @@ SYMBOL TABLE:
0000000000001130 g \.data 0000000000000000 baz
0000000000001130 g .* 0000000000000000 ___dtors
00000000000010a4 g \.text 0000000000000000 0x04 xyzzy
-0000000000001148 g \*ABS\* 0000000000000000 __bss_start
+0000000000001148 g \.data 0000000000000000 __bss_start
0000000000001130 g .* 0000000000000000 ___ctors_end
0000000000001138 g \.data 0000000000000000 baz2
0000000000001130 g .* 0000000000000000 ___ctors
0000000000001000 g \.text 0000000000000000 0x04 foo
-0000000000001148 g \*ABS\* 0000000000000000 _edata
-0000000000001148 g \*ABS\* 0000000000000000 _end
+0000000000001148 g \.data 0000000000000000 _edata
+0000000000001148 g \.data 0000000000000000 _end
0000000000001018 g \.text 0000000000000000 0x04 start
0000000000001014 g \.text 0000000000000000 0x04 bar
0000000000080000 g \.stack 0000000000000000 _stack
diff --git a/ld/testsuite/ld-sh/sh64/cmpct1.xd b/ld/testsuite/ld-sh/sh64/cmpct1.xd
index 317d044..b32f820 100644
--- a/ld/testsuite/ld-sh/sh64/cmpct1.xd
+++ b/ld/testsuite/ld-sh/sh64/cmpct1.xd
@@ -28,11 +28,11 @@ SYMBOL TABLE:
0+100c l \.rodata 0+ here
0+ l df \*ABS\* 0+ .*
0+1098 g .* 0+ ___dtors
-0+1098 g \*ABS\* 0+ __bss_start
+0+1098 g \.rodata 0+ __bss_start
0+1098 g .* 0+ ___ctors_end
0+1098 g .* 0+ ___ctors
-0+1098 g \*ABS\* 0+ _edata
-0+1098 g \*ABS\* 0+ _end
+0+1098 g \.rodata 0+ _edata
+0+1098 g \.rodata 0+ _end
0+1000 g \.text 0+ start
0+80000 g \.stack 0+ _stack
0+1098 g .* 0+ ___dtors_end
diff --git a/ld/testsuite/ld-sh/sh64/crange1.rd b/ld/testsuite/ld-sh/sh64/crange1.rd
index 2546130..10cd3b3 100644
--- a/ld/testsuite/ld-sh/sh64/crange1.rd
+++ b/ld/testsuite/ld-sh/sh64/crange1.rd
@@ -26,12 +26,12 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.*: 00001004 +0 +NOTYPE +LOCAL +DEFAULT +\[<other>: 4\] +2 start2
.* FILE +LOCAL +DEFAULT +ABS .*
.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors
-.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start
+.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +2 __bss_start
.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors_end
.*: 00001004 +0 +NOTYPE +GLOBAL +DEFAULT +2 diversion2
.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors
-.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata
-.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end
+.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +2 _edata
+.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +2 _end
.*: 00001000 +0 +NOTYPE +GLOBAL +DEFAULT +\[<other>: 4\] +1 start
.*: 00080000 +0 +NOTYPE +GLOBAL +DEFAULT +3 _stack
.*: 000010a0 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors_end
diff --git a/ld/testsuite/ld-sh/sh64/crange2.rd b/ld/testsuite/ld-sh/sh64/crange2.rd
index 5bff4c3..131712c 100644
--- a/ld/testsuite/ld-sh/sh64/crange2.rd
+++ b/ld/testsuite/ld-sh/sh64/crange2.rd
@@ -31,12 +31,12 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.*: 00001048 +0 +NOTYPE +LOCAL +DEFAULT +2 sec4
.* FILE +LOCAL +DEFAULT +ABS .*
.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors
-.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start
+.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +2 __bss_start
.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors_end
.*: 00001004 +0 +NOTYPE +GLOBAL +DEFAULT +2 diversion2
.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors
-.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata
-.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end
+.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +2 _edata
+.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +2 _end
.*: 00001000 +0 +NOTYPE +GLOBAL +DEFAULT +\[<other>: 4\] +1 start
.*: 00080000 +0 +NOTYPE +GLOBAL +DEFAULT +3 _stack
.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors_end
diff --git a/ld/testsuite/ld-sh/sh64/crange3-cmpct.rd b/ld/testsuite/ld-sh/sh64/crange3-cmpct.rd
index 65b3dfa..c00366a 100644
--- a/ld/testsuite/ld-sh/sh64/crange3-cmpct.rd
+++ b/ld/testsuite/ld-sh/sh64/crange3-cmpct.rd
@@ -48,12 +48,12 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.*: 00000000 +0 +FILE +LOCAL +DEFAULT +ABS .*
.*: 000010c4 +0 +NOTYPE +GLOBAL +DEFAULT +\[<other>: 4\] +2 diversion
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors
-.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start
+.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +2 __bss_start
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors_end
.*: 000010a4 +0 +NOTYPE +GLOBAL +DEFAULT +2 diversion2
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors
-.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata
-.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end
+.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +2 _edata
+.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +2 _end
.*: 00001000 +0 +NOTYPE +GLOBAL +DEFAULT +\[<other>: 4\] +1 start
.*: 00080000 +0 +NOTYPE +GLOBAL +DEFAULT +3 _stack
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors_end
diff --git a/ld/testsuite/ld-sh/sh64/crange3-media.rd b/ld/testsuite/ld-sh/sh64/crange3-media.rd
index e443ad9..52d4d00 100644
--- a/ld/testsuite/ld-sh/sh64/crange3-media.rd
+++ b/ld/testsuite/ld-sh/sh64/crange3-media.rd
@@ -48,12 +48,12 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.*: 00000000 +0 +FILE +LOCAL +DEFAULT +ABS .*
.*: 000010c4 +0 +NOTYPE +GLOBAL +DEFAULT +\[<other>: 4\] +2 diversion
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors
-.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start
+.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +2 __bss_start
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors_end
.*: 000010a4 +0 +NOTYPE +GLOBAL +DEFAULT +2 diversion2
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors
-.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata
-.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end
+.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +2 _edata
+.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +2 _end
.*: 00001000 +0 +NOTYPE +GLOBAL +DEFAULT +\[<other>: 4\] +1 start
.*: 00080000 +0 +NOTYPE +GLOBAL +DEFAULT +3 _stack
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors_end
diff --git a/ld/testsuite/ld-sh/sh64/crange3.rd b/ld/testsuite/ld-sh/sh64/crange3.rd
index 58f511c..817f8f6 100644
--- a/ld/testsuite/ld-sh/sh64/crange3.rd
+++ b/ld/testsuite/ld-sh/sh64/crange3.rd
@@ -29,12 +29,12 @@ Symbol table '\.symtab' contains [0-9]+ entries:
.*: 00000000 +0 +FILE +LOCAL +DEFAULT +ABS .*
.*: 000010c4 +0 +NOTYPE +GLOBAL +DEFAULT +\[<other>: 4\] +2 diversion
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors
-.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start
+.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +2 __bss_start
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors_end
.*: 000010a4 +0 +NOTYPE +GLOBAL +DEFAULT +2 diversion2
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___ctors
-.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata
-.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end
+.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +2 _edata
+.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +2 _end
.*: 00001000 +0 +NOTYPE +GLOBAL +DEFAULT +\[<other>: 4\] +1 start
.*: 00080000 +0 +NOTYPE +GLOBAL +DEFAULT +3 _stack
.*: 00001160 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors_end
diff --git a/ld/testsuite/ld-sh/sh64/mix1.xd b/ld/testsuite/ld-sh/sh64/mix1.xd
index 8015f23..5011676 100644
--- a/ld/testsuite/ld-sh/sh64/mix1.xd
+++ b/ld/testsuite/ld-sh/sh64/mix1.xd
@@ -34,11 +34,11 @@ SYMBOL TABLE:
0+1018 l \.text 0+ 0x04 mediacode
0+ l df \*ABS\* 0+ .*
0+10c8 g .* 0+ ___dtors
-0+10d8 g \*ABS\* 0+ __bss_start
+0+10d8 g \.data 0+ __bss_start
0+10c8 g .* 0+ ___ctors_end
0+10c8 g .* 0+ ___ctors
-0+10d8 g \*ABS\* 0+ _edata
-0+10d8 g \*ABS\* 0+ _end
+0+10d8 g \.data 0+ _edata
+0+10d8 g \.data 0+ _end
0+1000 g \.text 0+ start
0+80000 g \.stack 0+ _stack
0+10c8 g .* 0+ ___dtors_end
diff --git a/ld/testsuite/ld-sh/sh64/mix2.xd b/ld/testsuite/ld-sh/sh64/mix2.xd
index 0bece09..ddd0632 100644
--- a/ld/testsuite/ld-sh/sh64/mix2.xd
+++ b/ld/testsuite/ld-sh/sh64/mix2.xd
@@ -43,12 +43,12 @@ SYMBOL TABLE:
0+1010 g \.text 0+ 0x04 medialabel1
0+10c8 g .* 0+ ___dtors
0+10cc g \.data 0+ medialabel4
-0+10d8 g \*ABS\* 0+ __bss_start
+0+10d8 g \.data 0+ __bss_start
0+10c8 g .* 0+ ___ctors_end
0+10d4 g \.data 0+ compactlabel5
0+10c8 g .* 0+ ___ctors
-0+10d8 g \*ABS\* 0+ _edata
-0+10d8 g \*ABS\* 0+ _end
+0+10d8 g \.data 0+ _edata
+0+10d8 g \.data 0+ _end
0+1000 g \.text 0+ 0x04 start
0+80000 g \.stack 0+ _stack
0+10c8 g .* 0+ ___dtors_end
diff --git a/ld/testsuite/ld-sh/sh64/shdl32.xd b/ld/testsuite/ld-sh/sh64/shdl32.xd
index 94a2c2b..8606b6f 100644
--- a/ld/testsuite/ld-sh/sh64/shdl32.xd
+++ b/ld/testsuite/ld-sh/sh64/shdl32.xd
@@ -84,7 +84,7 @@ SYMBOL TABLE:
0+1164 g \.text 0+ 0x04 barboth2
0+1168 g \.text 0+ 0x04 barwithout
0+14d8 g \.data 0+ dbar_mix2
-0+1560 g \*ABS\* 0+ __bss_start
+0+1560 g \.data 0+ __bss_start
0+1410 g \.data 0+ dfoo_mixboth
0+14c4 g \.data 0+ dbar_other
0+1180 g \.text 0+ 0x04 bar_mix2
@@ -104,8 +104,8 @@ SYMBOL TABLE:
0+14c0 g \.data 0+ dbarwithout
0+1004 g \.text 0+ 0x04 foo
0+102c g \.text 0+ 0x04 foo_other
-0+1560 g \*ABS\* 0+ _edata
-0+1560 g \*ABS\* 0+ _end
+0+1560 g \.data 0+ _edata
+0+1560 g \.data 0+ _end
0+1430 g \.data 0+ dfoo_mixwithout2
0+1058 g \.text 0+ 0x04 foo_mixboth2
0+11d4 g \.text 0+ 0x04 baz_mix2
diff --git a/ld/testsuite/ld-sh/sh64/shdl64.xd b/ld/testsuite/ld-sh/sh64/shdl64.xd
index aa97cb7..47f35a7 100644
--- a/ld/testsuite/ld-sh/sh64/shdl64.xd
+++ b/ld/testsuite/ld-sh/sh64/shdl64.xd
@@ -84,7 +84,7 @@ SYMBOL TABLE:
0+1164 g \.text 0+ 0x04 barboth2
0+1168 g \.text 0+ 0x04 barwithout
0+14d8 g \.data 0+ dbar_mix2
-0+1560 g \*ABS\* 0+ __bss_start
+0+1560 g \.data 0+ __bss_start
0+1410 g \.data 0+ dfoo_mixboth
0+14c4 g \.data 0+ dbar_other
0+1180 g \.text 0+ 0x04 bar_mix2
@@ -104,8 +104,8 @@ SYMBOL TABLE:
0+14c0 g \.data 0+ dbarwithout
0+1004 g \.text 0+ 0x04 foo
0+102c g \.text 0+ 0x04 foo_other
-0+1560 g \*ABS\* 0+ _edata
-0+1560 g \*ABS\* 0+ _end
+0+1560 g \.data 0+ _edata
+0+1560 g \.data 0+ _end
0+1430 g \.data 0+ dfoo_mixwithout2
0+1058 g \.text 0+ 0x04 foo_mixboth2
0+11d4 g \.text 0+ 0x04 baz_mix2