From e6ef8cace36b840940fb6d29e715ead89a1d8819 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 15 Jun 2012 15:13:32 +0000 Subject: 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. --- ld/testsuite/ld-tic6x/shlib-1r.rd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ld/testsuite/ld-tic6x/shlib-1r.rd') diff --git a/ld/testsuite/ld-tic6x/shlib-1r.rd b/ld/testsuite/ld-tic6x/shlib-1r.rd index a5ad39be70..d3bf087a1f 100644 --- a/ld/testsuite/ld-tic6x/shlib-1r.rd +++ b/ld/testsuite/ld-tic6x/shlib-1r.rd @@ -85,7 +85,7 @@ Symbol table '\.dynsym' contains 13 entries: 3: 10000100 0 SECTION LOCAL DEFAULT 10 4: 10000128 0 SECTION LOCAL DEFAULT 11 5: 10000130 0 SECTION LOCAL DEFAULT 12 - 6: 10000100 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 10000100 0 NOTYPE LOCAL DEFAULT 10 __c6xabi_DSBT_BASE 7: 00000000 0 NOTYPE WEAK DEFAULT UND b 8: 00000000 0 NOTYPE WEAK DEFAULT UND g1 9: 1000012c 4 OBJECT GLOBAL DEFAULT 11 g2 @@ -115,7 +115,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00000000 0 FILE LOCAL DEFAULT ABS .* .* 0000817c 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC .* 1000010c 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ -.* 10000100 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 10000100 0 NOTYPE LOCAL DEFAULT 10 __c6xabi_DSBT_BASE .* 00000000 0 NOTYPE WEAK DEFAULT UND b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 NOTYPE WEAK DEFAULT UND g1 -- cgit v1.2.1