old-cross-binutils/ld/testsuite/ld-sh/sh64/crange2.rd
Alan Modra d2667025dd 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.
2012-06-15 15:13:41 +00:00

57 lines
2.4 KiB
R

.*
Section Headers:
+\[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al
+\[ 0\] +NULL +00000000 000000 000000 00 +0 +0 +0
+\[ 1\] \.init +PROGBITS +00001000 000080 000004 00 AXp +0 +0 +4
+\[ 2\] \.text +PROGBITS +00001004 000084 00005c 00 AXp +0 +0 +4
+\[ 3\] \.stack +PROGBITS +00080000 000100 000004 00 +WA +0 +0 +1
+\[ 4\] \.cranges +LOUSER\+1 +00000000 000104 000046 00 +W +0 +0 +1
+\[ 5\] \.shstrtab +STRTAB +.*
+\[ 6\] \.symtab +SYMTAB +.*
+\[ 7\] \.strtab +STRTAB +.*
Key to Flags:
#...
There are no relocations in this file\.
Symbol table '\.symtab' contains [0-9]+ entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
.*: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +UND
.*: 00001000 +0 +SECTION +LOCAL +DEFAULT +1
.*: 00001004 +0 +SECTION +LOCAL +DEFAULT +2
.*: 00080000 +0 +SECTION +LOCAL +DEFAULT +3
.*: 00000000 +0 +SECTION +LOCAL +DEFAULT +4
.* FILE +LOCAL +DEFAULT +ABS .*
.*: 00001004 +0 +NOTYPE +LOCAL +DEFAULT +\[<other>: 4\] +2 start2
.* FILE +LOCAL +DEFAULT +ABS .*
.*: 0000101c +0 +NOTYPE +LOCAL +DEFAULT +\[<other>: 4\] +2 sec1
.*: 0000102c +0 +NOTYPE +LOCAL +DEFAULT +\[<other>: 4\] +2 sec2
.*: 00001040 +0 +NOTYPE +LOCAL +DEFAULT +2 sec3
.*: 00001048 +0 +NOTYPE +LOCAL +DEFAULT +2 sec4
.* FILE +LOCAL +DEFAULT +ABS .*
.*: 000010e0 +0 +NOTYPE +GLOBAL +DEFAULT +.* ___dtors
.*: 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 +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
Hex dump of section '\.text':
0x00001004 6ff0fff0 6ff0fff0 6ff0fff0 0000002a .*
0x00001014 0000002b 00090009 6ff0fff0 6ff0fff0 .*
0x00001024 6ff0fff0 6ff0fff0 00000029 0000002b .*
0x00001034 0000002a 0000002b 0000002a 00090009 .*
0x00001044 00090000 6ff0fff0 6ff0fff0 6ff0fff0 .*
0x00001054 6ff0fff0 6ff0fff0 6ff0fff0 .*
Hex dump of section '\.cranges':
0x00000000 00001004 0000000c 00030000 10100000 .*
0x00000010 00080001 00001018 00000004 00020000 .*
0x00000020 101c0000 00100003 0000102c 00000014 .*
0x00000030 00010000 10400000 00060002 00001048 .*
0x00000040 00000018 0003 .*