diff options
author | Alan Modra <amodra@gmail.com> | 2012-06-15 15:13:41 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-06-15 15:13:41 +0000 |
commit | d2667025dd30611514810c28bee9709e4623012a (patch) | |
tree | 7364422fa955cf289aef9008298bb0bc79394d65 /ld/testsuite/ld-mmix | |
parent | 8e09ad05eda21f6772d6bcca1eb8b42e5d77be03 (diff) | |
download | gdb-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-mmix')
-rw-r--r-- | ld/testsuite/ld-mmix/bpo-10.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/bpo-11.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/greg-6.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/greg-7.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/loc1.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/loc2.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/loc3.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/loc4.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/loc6.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/locdo-1.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/loct-1.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/locto-1.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/start-1.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/undef-3.d | 6 |
14 files changed, 42 insertions, 42 deletions
diff --git a/ld/testsuite/ld-mmix/bpo-10.d b/ld/testsuite/ld-mmix/bpo-10.d index 576ce98..1bc6269 100644 --- a/ld/testsuite/ld-mmix/bpo-10.d +++ b/ld/testsuite/ld-mmix/bpo-10.d @@ -15,9 +15,9 @@ SYMBOL TABLE: 0+ l df \*ABS\* 0+ .* 0+ l \.init 0+ _start 0+ l df \*ABS\* 0+ .* -2000000000000000 l \*ABS\* 0+ __bss_start -2000000000000000 l \*ABS\* 0+ _edata -2000000000000000 l \*ABS\* 0+ _end +2000000000000000 l \.init 0+ __bss_start +2000000000000000 l \.init 0+ _edata +2000000000000000 l \.init 0+ _end 0+4 l \.init 0+ _start\. Contents of section \.init: diff --git a/ld/testsuite/ld-mmix/bpo-11.d b/ld/testsuite/ld-mmix/bpo-11.d index ce4d80d..7f47450 100644 --- a/ld/testsuite/ld-mmix/bpo-11.d +++ b/ld/testsuite/ld-mmix/bpo-11.d @@ -17,9 +17,9 @@ SYMBOL TABLE: 0+ l df \*ABS\* 0+ .* 0+ l \.init 0+ _start 0+ l df \*ABS\* 0+ .* -2000000000000000 l \*ABS\* 0+ __bss_start -2000000000000000 l \*ABS\* 0+ _edata -2000000000000000 l \*ABS\* 0+ _end +2000000000000000 l \.text 0+ __bss_start +2000000000000000 l \.text 0+ _edata +2000000000000000 l \.text 0+ _end 0+10 l \.text 0+ _start\. 0+14 g \.text 0+ x 0+10 g \.text 0+ x2 diff --git a/ld/testsuite/ld-mmix/greg-6.d b/ld/testsuite/ld-mmix/greg-6.d index 35046d8..d8157f7 100644 --- a/ld/testsuite/ld-mmix/greg-6.d +++ b/ld/testsuite/ld-mmix/greg-6.d @@ -293,9 +293,9 @@ SYMBOL TABLE: 0+ l df \*ABS\* 0+ .* 0+14 g \.text 0+ _start 0+fe g \*REG\* 0+ areg -2000000000000000 g \*ABS\* 0+ __bss_start -2000000000000000 g \*ABS\* 0+ _edata -2000000000000000 g \*ABS\* 0+ _end +2000000000000000 g \.text 0+ __bss_start +2000000000000000 g \.text 0+ _edata +2000000000000000 g \.text 0+ _end 0+14 g \.text 0+ _start\. 0+10 g \.text 0+ a diff --git a/ld/testsuite/ld-mmix/greg-7.d b/ld/testsuite/ld-mmix/greg-7.d index 4b1433e..57df901 100644 --- a/ld/testsuite/ld-mmix/greg-7.d +++ b/ld/testsuite/ld-mmix/greg-7.d @@ -293,9 +293,9 @@ SYMBOL TABLE: 0+ l df \*ABS\* 0+ .* 0+14 g \.text 0+ _start 0+20 g \*REG\* 0+ areg -2000000000000000 g \*ABS\* 0+ __bss_start -2000000000000000 g \*ABS\* 0+ _edata -2000000000000000 g \*ABS\* 0+ _end +2000000000000000 g \.text 0+ __bss_start +2000000000000000 g \.text 0+ _edata +2000000000000000 g \.text 0+ _end 0+14 g \.text 0+ _start\. 0+10 g \.text 0+ a diff --git a/ld/testsuite/ld-mmix/loc1.d b/ld/testsuite/ld-mmix/loc1.d index cac2689..97db59f 100644 --- a/ld/testsuite/ld-mmix/loc1.d +++ b/ld/testsuite/ld-mmix/loc1.d @@ -10,9 +10,9 @@ SYMBOL TABLE: 0+1000 l d \.text 0+ (|\.text) 0+1000 g \.text 0+ loc1 0+1000 g \*ABS\* 0+ __\.MMIX\.start\.\.text -2000000000000000 g \*ABS\* 0+ __bss_start -2000000000000000 g \*ABS\* 0+ _edata -2000000000000000 g \*ABS\* 0+ _end +2000000000000000 g \.text 0+ __bss_start +2000000000000000 g \.text 0+ _edata +2000000000000000 g \.text 0+ _end 0+1000 g \.text 0+ _start\. Contents of section \.text: diff --git a/ld/testsuite/ld-mmix/loc2.d b/ld/testsuite/ld-mmix/loc2.d index 7d44c22..e00b5ef 100644 --- a/ld/testsuite/ld-mmix/loc2.d +++ b/ld/testsuite/ld-mmix/loc2.d @@ -12,9 +12,9 @@ SYMBOL TABLE: 0+1004 g \.text 0+ _start 0+1000 g \.text 0+ loc1 0+1000 g \*ABS\* 0+ __\.MMIX\.start\.\.text -2000000000000000 g \*ABS\* 0+ __bss_start -2000000000000000 g \*ABS\* 0+ _edata -2000000000000000 g \*ABS\* 0+ _end +2000000000000000 g \.text 0+ __bss_start +2000000000000000 g \.text 0+ _edata +2000000000000000 g \.text 0+ _end 0+1004 g \.text 0+ _start\. Contents of section \.text: diff --git a/ld/testsuite/ld-mmix/loc3.d b/ld/testsuite/ld-mmix/loc3.d index ff0fe8a..110fdbc 100644 --- a/ld/testsuite/ld-mmix/loc3.d +++ b/ld/testsuite/ld-mmix/loc3.d @@ -12,9 +12,9 @@ SYMBOL TABLE: 0+1000 g \.text 0+ _start 0+1004 g \.text 0+ loc1 0+1000 g \*ABS\* 0+ __\.MMIX\.start\.\.text -2000000000000000 g \*ABS\* 0+ __bss_start -2000000000000000 g \*ABS\* 0+ _edata -2000000000000000 g \*ABS\* 0+ _end +2000000000000000 g \.text 0+ __bss_start +2000000000000000 g \.text 0+ _edata +2000000000000000 g \.text 0+ _end 0+1000 g \.text 0+ _start\. Contents of section \.text: diff --git a/ld/testsuite/ld-mmix/loc4.d b/ld/testsuite/ld-mmix/loc4.d index e0c4247..dccfb76 100644 --- a/ld/testsuite/ld-mmix/loc4.d +++ b/ld/testsuite/ld-mmix/loc4.d @@ -19,9 +19,9 @@ SYMBOL TABLE: 0+1004 g \.text 0+ _start 0+1000 g \.text 0+ loc1 0+1000 g \*ABS\* 0+ __\.MMIX\.start\.\.text -2000000000000008 g \*ABS\* 0+ __bss_start -2000000000000008 g \*ABS\* 0+ _edata -2000000000000008 g \*ABS\* 0+ _end +2000000000000008 g \.data 0+ __bss_start +2000000000000008 g \.data 0+ _edata +2000000000000008 g \.data 0+ _end 0+1004 g \.text 0+ _start\. Contents of section \.text: diff --git a/ld/testsuite/ld-mmix/loc6.d b/ld/testsuite/ld-mmix/loc6.d index 425edae..1fce9a4 100644 --- a/ld/testsuite/ld-mmix/loc6.d +++ b/ld/testsuite/ld-mmix/loc6.d @@ -13,9 +13,9 @@ SYMBOL TABLE: 2000000000000200 g \.data 0+ dloc1 2000000000000200 g \*ABS\* 0+ __\.MMIX\.start\.\.data 0+ g \.text 0+ _start -200000000000020c g \*ABS\* 0+ __bss_start -200000000000020c g \*ABS\* 0+ _edata -2000000000000210 g \*ABS\* 0+ _end +200000000000020c g \.data 0+ __bss_start +200000000000020c g \.data 0+ _edata +2000000000000210 g \.data 0+ _end 0+ g \.text 0+ _start\. Contents of section \.text: diff --git a/ld/testsuite/ld-mmix/locdo-1.d b/ld/testsuite/ld-mmix/locdo-1.d index 4a16735..66a9f32 100644 --- a/ld/testsuite/ld-mmix/locdo-1.d +++ b/ld/testsuite/ld-mmix/locdo-1.d @@ -11,10 +11,10 @@ SYMBOL TABLE: 2000000000000008 g \*ABS\* 0+ __\.MMIX\.start\.\.data 2000000000000008 g \.data 0+ od 0+ g \.text 0+ _start -2000000000000010 g \*ABS\* 0+ __bss_start +2000000000000010 g \.data 0+ __bss_start 2000000000000000 g \*ABS\* 0+ Data_Segment -2000000000000010 g \*ABS\* 0+ _edata -2000000000000010 g \*ABS\* 0+ _end +2000000000000010 g \.data 0+ _edata +2000000000000010 g \.data 0+ _end 0+ g \.text 0+ _start\. Contents of section \.text: diff --git a/ld/testsuite/ld-mmix/loct-1.d b/ld/testsuite/ld-mmix/loct-1.d index fb81819..853b065 100644 --- a/ld/testsuite/ld-mmix/loct-1.d +++ b/ld/testsuite/ld-mmix/loct-1.d @@ -12,9 +12,9 @@ SYMBOL TABLE: 0+ l df \*ABS\* 0+ .* 0+100c g \.text 0+ _start 0+1004 g \*ABS\* 0+ __\.MMIX\.start\.\.text -2000000000000000 g \*ABS\* 0+ __bss_start -2000000000000000 g \*ABS\* 0+ _edata -2000000000000000 g \*ABS\* 0+ _end +2000000000000000 g \.text 0+ __bss_start +2000000000000000 g \.text 0+ _edata +2000000000000000 g \.text 0+ _end 0+100c g \.text 0+ _start\. Contents of section \.text: diff --git a/ld/testsuite/ld-mmix/locto-1.d b/ld/testsuite/ld-mmix/locto-1.d index 5c5c391..911f9a4 100644 --- a/ld/testsuite/ld-mmix/locto-1.d +++ b/ld/testsuite/ld-mmix/locto-1.d @@ -10,9 +10,9 @@ SYMBOL TABLE: 0+1008 g \.text 0+ od 0+1010 g \.text 0+ _start 0+1008 g \*ABS\* 0+ __\.MMIX\.start\.\.text -2000000000000000 g \*ABS\* 0+ __bss_start -2000000000000000 g \*ABS\* 0+ _edata -2000000000000000 g \*ABS\* 0+ _end +2000000000000000 g \.text 0+ __bss_start +2000000000000000 g \.text 0+ _edata +2000000000000000 g \.text 0+ _end 0+1010 g \.text 0+ _start\. Contents of section \.text: diff --git a/ld/testsuite/ld-mmix/start-1.d b/ld/testsuite/ld-mmix/start-1.d index 37c23d6..c8f6ea7 100644 --- a/ld/testsuite/ld-mmix/start-1.d +++ b/ld/testsuite/ld-mmix/start-1.d @@ -7,9 +7,9 @@ SYMBOL TABLE: 0+ l d \.text 0+ (|\.text) 0+4 g \.text 0+ _start -2000000000000000 g \*ABS\* 0+ __bss_start -2000000000000000 g \*ABS\* 0+ _edata -2000000000000000 g \*ABS\* 0+ _end +2000000000000000 g \.text 0+ __bss_start +2000000000000000 g \.text 0+ _edata +2000000000000000 g \.text 0+ _end 0+4 g \.text 0+ _start\. Disassembly of section \.text: diff --git a/ld/testsuite/ld-mmix/undef-3.d b/ld/testsuite/ld-mmix/undef-3.d index 2571513..93d7a99 100644 --- a/ld/testsuite/ld-mmix/undef-3.d +++ b/ld/testsuite/ld-mmix/undef-3.d @@ -26,7 +26,7 @@ Symbol table '\.symtab' contains 8 entries: +1: 0+ +0 +SECTION +LOCAL +DEFAULT +1 +2: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND undefd +3: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +1 _start - +4: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start - +5: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +6: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +4: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 __bss_start + +5: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 _edata + +6: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 _end +7: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +1 _start\. |