From d2667025dd30611514810c28bee9709e4623012a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 15 Jun 2012 15:13:41 +0000 Subject: [PATCH] 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/ChangeLog | 22 +++ ld/emultempl/lnk960.em | 66 +++++++- ld/ldexp.c | 8 +- ld/ldlang.c | 188 +++++++++++++-------- ld/ldlang.h | 8 +- ld/scripttempl/elf.sc | 3 +- ld/testsuite/ChangeLog | 53 ++++++ ld/testsuite/ld-alpha/emptygot.nm | 6 +- ld/testsuite/ld-alpha/tlsbin.rd | 12 +- ld/testsuite/ld-alpha/tlsbinr.rd | 12 +- ld/testsuite/ld-alpha/tlspic.rd | 12 +- ld/testsuite/ld-arm/arm-dyn.ld | 1 + ld/testsuite/ld-arm/armthumb-lib.sym | 14 +- ld/testsuite/ld-arm/farcall-mixed-app.sym | 14 +- ld/testsuite/ld-arm/mixed-app.sym | 14 +- ld/testsuite/ld-arm/mixed-lib.sym | 14 +- ld/testsuite/ld-arm/preempt-app.sym | 14 +- ld/testsuite/ld-cris/libdso-2.d | 6 +- ld/testsuite/ld-cris/pv32-1.d | 6 +- ld/testsuite/ld-cris/tls-e-20.d | 6 +- ld/testsuite/ld-cris/tls-e-20a.d | 6 +- ld/testsuite/ld-cris/tls-e-80.d | 6 +- ld/testsuite/ld-cris/tls-e-tpoffcomm1.d | 20 +-- ld/testsuite/ld-cris/tls-gc-68.d | 18 +- ld/testsuite/ld-cris/tls-gc-69.d | 14 +- ld/testsuite/ld-cris/tls-gc-70.d | 18 +- ld/testsuite/ld-cris/tls-gc-71.d | 16 +- ld/testsuite/ld-cris/tls-gc-75.d | 18 +- ld/testsuite/ld-cris/tls-gc-76.d | 26 +-- ld/testsuite/ld-cris/tls-gc-79.d | 18 +- ld/testsuite/ld-cris/weakhiddso.d | 10 +- ld/testsuite/ld-cris/weakref3.d | 14 +- ld/testsuite/ld-cris/weakref4.d | 10 +- ld/testsuite/ld-elfvsb/hidden2.d | 2 +- ld/testsuite/ld-i386/tlsbin.rd | 12 +- ld/testsuite/ld-i386/tlsbindesc.rd | 12 +- ld/testsuite/ld-i386/tlsdesc.rd | 12 +- ld/testsuite/ld-i386/tlsgdesc.rd | 12 +- ld/testsuite/ld-i386/tlsnopic.rd | 12 +- ld/testsuite/ld-i386/tlspic.rd | 12 +- ld/testsuite/ld-ia64/tlsbin.rd | 12 +- ld/testsuite/ld-ia64/tlspic.rd | 12 +- ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d | 4 +- ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got | 2 +- ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d | 4 +- ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got | 2 +- ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d | 4 +- ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got | 2 +- ld/testsuite/ld-mmix/bpo-10.d | 6 +- ld/testsuite/ld-mmix/bpo-11.d | 6 +- ld/testsuite/ld-mmix/greg-6.d | 6 +- ld/testsuite/ld-mmix/greg-7.d | 6 +- ld/testsuite/ld-mmix/loc1.d | 6 +- ld/testsuite/ld-mmix/loc2.d | 6 +- ld/testsuite/ld-mmix/loc3.d | 6 +- ld/testsuite/ld-mmix/loc4.d | 6 +- ld/testsuite/ld-mmix/loc6.d | 6 +- ld/testsuite/ld-mmix/locdo-1.d | 6 +- ld/testsuite/ld-mmix/loct-1.d | 6 +- ld/testsuite/ld-mmix/locto-1.d | 6 +- ld/testsuite/ld-mmix/start-1.d | 6 +- ld/testsuite/ld-mmix/undef-3.d | 6 +- ld/testsuite/ld-powerpc/relbrlt.d | 2 +- ld/testsuite/ld-powerpc/tlsexe.r | 12 +- ld/testsuite/ld-powerpc/tlsexe32.r | 16 +- ld/testsuite/ld-powerpc/tlsexetoc.r | 12 +- ld/testsuite/ld-powerpc/tlsso.r | 12 +- ld/testsuite/ld-powerpc/tlsso32.r | 16 +- ld/testsuite/ld-powerpc/tlstocso.r | 12 +- ld/testsuite/ld-s390/tlsbin.rd | 14 +- ld/testsuite/ld-s390/tlsbin_64.rd | 17 +- ld/testsuite/ld-s390/tlspic.rd | 12 +- ld/testsuite/ld-s390/tlspic_64.rd | 12 +- ld/testsuite/ld-scripts/empty-address-1.d | 2 +- ld/testsuite/ld-scripts/empty-address-2a.d | 2 +- ld/testsuite/ld-scripts/empty-address-2b.d | 2 +- ld/testsuite/ld-scripts/empty-address-3a.d | 2 +- ld/testsuite/ld-scripts/empty-address-3b.d | 2 +- ld/testsuite/ld-scripts/empty-address-3c.d | 2 +- ld/testsuite/ld-sh/sh64/abi32.xd | 6 +- ld/testsuite/ld-sh/sh64/abi64.xd | 6 +- ld/testsuite/ld-sh/sh64/cmpct1.xd | 6 +- ld/testsuite/ld-sh/sh64/crange1.rd | 6 +- ld/testsuite/ld-sh/sh64/crange2.rd | 6 +- ld/testsuite/ld-sh/sh64/crange3-cmpct.rd | 6 +- ld/testsuite/ld-sh/sh64/crange3-media.rd | 6 +- ld/testsuite/ld-sh/sh64/crange3.rd | 6 +- ld/testsuite/ld-sh/sh64/mix1.xd | 6 +- ld/testsuite/ld-sh/sh64/mix2.xd | 6 +- ld/testsuite/ld-sh/sh64/shdl32.xd | 6 +- ld/testsuite/ld-sh/sh64/shdl64.xd | 6 +- ld/testsuite/ld-sparc/gotop32.rd | 12 +- ld/testsuite/ld-sparc/gotop64.rd | 12 +- ld/testsuite/ld-sparc/tlssunbin32.rd | 12 +- ld/testsuite/ld-sparc/tlssunbin64.rd | 12 +- ld/testsuite/ld-sparc/tlssunnopic32.rd | 12 +- ld/testsuite/ld-sparc/tlssunnopic64.rd | 12 +- ld/testsuite/ld-sparc/tlssunpic32.rd | 12 +- ld/testsuite/ld-sparc/tlssunpic64.rd | 12 +- ld/testsuite/ld-spu/icache1.d | 4 +- ld/testsuite/ld-spu/pic.d | 2 +- ld/testsuite/ld-tic6x/dsbt-be.ld | 2 +- ld/testsuite/ld-tic6x/dsbt.ld | 2 +- ld/testsuite/ld-tic6x/shlib-1.rd | 4 +- ld/testsuite/ld-tic6x/shlib-1b.rd | 4 +- ld/testsuite/ld-tic6x/shlib-1r.rd | 4 +- ld/testsuite/ld-tic6x/shlib-1rb.rd | 4 +- ld/testsuite/ld-tic6x/shlib-app-1.rd | 4 +- ld/testsuite/ld-tic6x/shlib-app-1b.rd | 4 +- ld/testsuite/ld-tic6x/shlib-app-1r.rd | 4 +- ld/testsuite/ld-tic6x/shlib-app-1rb.rd | 4 +- ld/testsuite/ld-tic6x/shlib-noindex.rd | 4 +- ld/testsuite/ld-tic6x/static-app-1.rd | 4 +- ld/testsuite/ld-tic6x/static-app-1b.rd | 4 +- ld/testsuite/ld-tic6x/static-app-1r.rd | 4 +- ld/testsuite/ld-tic6x/static-app-1rb.rd | 4 +- ld/testsuite/ld-x86-64/tlsbin.rd | 12 +- ld/testsuite/ld-x86-64/tlsbindesc.rd | 12 +- ld/testsuite/ld-x86-64/tlsdesc.rd | 12 +- ld/testsuite/ld-x86-64/tlsgdesc.rd | 12 +- ld/testsuite/ld-x86-64/tlspic.rd | 12 +- 121 files changed, 747 insertions(+), 565 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 73a852f66b..e157d73089 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,25 @@ +2012-06-16 Alan Modra + + * 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. + 2012-06-14 H.J. Lu * plugin.c (set_tv_header): Handle link_info.pie. diff --git a/ld/emultempl/lnk960.em b/ld/emultempl/lnk960.em index 7120329eda..e556d43235 100644 --- a/ld/emultempl/lnk960.em +++ b/ld/emultempl/lnk960.em @@ -130,15 +130,73 @@ lnk960_after_parse (void) add_on (syslib_list, lang_input_file_is_search_file_enum); } +/* Create a symbol with the given name with the value of the + address of first byte of the section named. + + If the symbol already exists, then do nothing. */ + +static void +symbol_at_beginning_of (const char *secname, const char *name) +{ + struct bfd_link_hash_entry *h; + + h = bfd_link_hash_lookup (link_info.hash, name, TRUE, TRUE, TRUE); + if (h == NULL) + einfo (_("%P%F: bfd_link_hash_lookup failed: %E\n")); + + if (h->type == bfd_link_hash_new + || h->type == bfd_link_hash_undefined) + { + asection *sec; + + h->type = bfd_link_hash_defined; + + sec = bfd_get_section_by_name (link_info.output_bfd, secname); + if (sec == NULL) + sec = bfd_abs_section_ptr; + h->u.def.value = 0; + h->u.def.section = sec; + } +} + +/* Create a symbol with the given name with the value of the + address of the first byte after the end of the section named. + + If the symbol already exists, then do nothing. */ + +static void +symbol_at_end_of (const char *secname, const char *name) +{ + struct bfd_link_hash_entry *h; + + h = bfd_link_hash_lookup (link_info.hash, name, TRUE, TRUE, TRUE); + if (h == NULL) + einfo (_("%P%F: bfd_link_hash_lookup failed: %E\n")); + + if (h->type == bfd_link_hash_new + || h->type == bfd_link_hash_undefined) + { + asection *sec; + + h->type = bfd_link_hash_defined; + + sec = bfd_get_section_by_name (link_info.output_bfd, secname); + if (sec == NULL) + sec = bfd_abs_section_ptr; + h->u.def.value = sec->size; + h->u.def.section = sec; + } +} + static void lnk960_after_allocation (void) { if (!link_info.relocatable) { - lang_abs_symbol_at_end_of (".text", "_etext"); - lang_abs_symbol_at_end_of (".data", "_edata"); - lang_abs_symbol_at_beginning_of (".bss", "_bss_start"); - lang_abs_symbol_at_end_of (".bss", "_end"); + symbol_at_end_of (".text", "_etext"); + symbol_at_end_of (".data", "_edata"); + symbol_at_beginning_of (".bss", "_bss_start"); + symbol_at_end_of (".bss", "_end"); } } diff --git a/ld/ldexp.c b/ld/ldexp.c index d83e274f27..be296bccf5 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -213,10 +213,14 @@ new_rel (bfd_vma value, asection *section) static void new_rel_from_abs (bfd_vma value) { + asection *s = expld.section; + + if (s == bfd_abs_section_ptr && expld.phase == lang_final_phase_enum) + s = section_for_dot (); expld.result.valid_p = TRUE; - expld.result.value = value - expld.section->vma; + expld.result.value = value - s->vma; expld.result.str = NULL; - expld.result.section = expld.section; + expld.result.section = s; } static void diff --git a/ld/ldlang.c b/ld/ldlang.c index 4e75624e51..2ecf62fc79 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -5247,7 +5247,7 @@ lang_size_sections_1 } expld.dataseg.relro = exp_dataseg_relro_none; - /* This symbol is relative to this section. */ + /* This symbol may be relative to this section. */ if ((tree->type.node_class == etree_provided || tree->type.node_class == etree_assign) && (tree->assign.dst [0] != '.' @@ -5466,13 +5466,18 @@ lang_size_sections (bfd_boolean *relax, bfd_boolean check_regions) expld.dataseg.phase = exp_dataseg_done; } +static lang_output_section_statement_type *current_section; +static lang_assignment_statement_type *current_assign; +static bfd_boolean prefer_next_section; + /* Worker function for lang_do_assignments. Recursiveness goes here. */ static bfd_vma lang_do_assignments_1 (lang_statement_union_type *s, lang_output_section_statement_type *current_os, fill_type *fill, - bfd_vma dot) + bfd_vma dot, + bfd_boolean *found_end) { for (; s != NULL; s = s->header.next) { @@ -5480,7 +5485,7 @@ lang_do_assignments_1 (lang_statement_union_type *s, { case lang_constructors_statement_enum: dot = lang_do_assignments_1 (constructor_list.head, - current_os, fill, dot); + current_os, fill, dot, found_end); break; case lang_output_section_statement_enum: @@ -5488,11 +5493,18 @@ lang_do_assignments_1 (lang_statement_union_type *s, lang_output_section_statement_type *os; os = &(s->output_section_statement); + os->after_end = *found_end; if (os->bfd_section != NULL && !os->ignored) { + if ((os->bfd_section->flags & SEC_ALLOC) != 0) + { + current_section = os; + prefer_next_section = FALSE; + } dot = os->bfd_section->vma; - lang_do_assignments_1 (os->children.head, os, os->fill, dot); + lang_do_assignments_1 (os->children.head, + os, os->fill, dot, found_end); /* .tbss sections effectively have zero size. */ if ((os->bfd_section->flags & SEC_HAS_CONTENTS) != 0 @@ -5509,7 +5521,7 @@ lang_do_assignments_1 (lang_statement_union_type *s, case lang_wild_statement_enum: dot = lang_do_assignments_1 (s->wild_statement.children.head, - current_os, fill, dot); + current_os, fill, dot, found_end); break; case lang_object_symbols_statement_enum: @@ -5580,6 +5592,19 @@ lang_do_assignments_1 (lang_statement_union_type *s, break; case lang_assignment_statement_enum: + current_assign = &s->assignment_statement; + if (current_assign->exp->type.node_class != etree_assert) + { + const char *p = current_assign->exp->assign.dst; + + if (current_os == abs_output_section && p[0] == '.' && p[1] == 0) + prefer_next_section = TRUE; + + while (*p == '_') + ++p; + if (strcmp (p, "end") == 0) + *found_end = TRUE; + } exp_fold_tree (s->assignment_statement.exp, current_os->bfd_section, &dot); @@ -5591,7 +5616,7 @@ lang_do_assignments_1 (lang_statement_union_type *s, case lang_group_statement_enum: dot = lang_do_assignments_1 (s->group_statement.children.head, - current_os, fill, dot); + current_os, fill, dot, found_end); break; case lang_insert_statement_enum: @@ -5611,9 +5636,89 @@ lang_do_assignments_1 (lang_statement_union_type *s, void lang_do_assignments (lang_phase_type phase) { + bfd_boolean found_end = FALSE; + + current_section = NULL; + prefer_next_section = FALSE; expld.phase = phase; lang_statement_iteration++; - lang_do_assignments_1 (statement_list.head, abs_output_section, NULL, 0); + lang_do_assignments_1 (statement_list.head, + abs_output_section, NULL, 0, &found_end); +} + +/* For an assignment statement outside of an output section statement, + choose the best of neighbouring output sections to use for values + of "dot". */ + +asection * +section_for_dot (void) +{ + asection *s; + + /* Assignments belong to the previous output section, unless there + has been an assignment to "dot", in which case following + assignments belong to the next output section. (The assumption + is that an assignment to "dot" is setting up the address for the + next output section.) Except that past the assignment to "_end" + we always associate with the previous section. This exception is + for targets like SH that define an alloc .stack or other + weirdness after non-alloc sections. */ + if (current_section == NULL || prefer_next_section) + { + lang_statement_union_type *stmt; + lang_output_section_statement_type *os; + + for (stmt = (lang_statement_union_type *) current_assign; + stmt != NULL; + stmt = stmt->header.next) + if (stmt->header.type == lang_output_section_statement_enum) + break; + + os = &stmt->output_section_statement; + while (os != NULL + && !os->after_end + && (os->bfd_section == NULL + || (os->bfd_section->flags & SEC_EXCLUDE) != 0 + || bfd_section_removed_from_list (link_info.output_bfd, + os->bfd_section))) + os = os->next; + + if (current_section == NULL || os == NULL || !os->after_end) + { + if (os != NULL) + s = os->bfd_section; + else + s = link_info.output_bfd->section_last; + while (s != NULL + && ((s->flags & SEC_ALLOC) == 0 + || (s->flags & SEC_THREAD_LOCAL) != 0)) + s = s->prev; + if (s != NULL) + return s; + + return bfd_abs_section_ptr; + } + } + + s = current_section->bfd_section; + + /* The section may have been stripped. */ + while (s != NULL + && ((s->flags & SEC_EXCLUDE) != 0 + || (s->flags & SEC_ALLOC) == 0 + || (s->flags & SEC_THREAD_LOCAL) != 0 + || bfd_section_removed_from_list (link_info.output_bfd, s))) + s = s->prev; + if (s == NULL) + s = link_info.output_bfd->sections; + while (s != NULL + && ((s->flags & SEC_ALLOC) == 0 + || (s->flags & SEC_THREAD_LOCAL) != 0)) + s = s->next; + if (s != NULL) + return s; + + return bfd_abs_section_ptr; } /* Fix any .startof. or .sizeof. symbols. When the assemblers see the @@ -5645,8 +5750,8 @@ lang_set_startof (void) if (h != NULL && h->type == bfd_link_hash_undefined) { h->type = bfd_link_hash_defined; - h->u.def.value = bfd_get_section_vma (link_info.output_bfd, s); - h->u.def.section = bfd_abs_section_ptr; + h->u.def.value = 0; + h->u.def.section = s; } sprintf (buf, ".sizeof.%s", secname); @@ -6132,8 +6237,6 @@ lang_add_output (const char *name, int from_script) } } -static lang_output_section_statement_type *current_section; - static int topower (int x) { @@ -6941,69 +7044,6 @@ lang_leave_output_section_statement (fill_type *fill, const char *memspec, pop_stat_ptr (); } -/* Create an absolute symbol with the given name with the value of the - address of first byte of the section named. - - If the symbol already exists, then do nothing. */ - -void -lang_abs_symbol_at_beginning_of (const char *secname, const char *name) -{ - struct bfd_link_hash_entry *h; - - h = bfd_link_hash_lookup (link_info.hash, name, TRUE, TRUE, TRUE); - if (h == NULL) - einfo (_("%P%F: bfd_link_hash_lookup failed: %E\n")); - - if (h->type == bfd_link_hash_new - || h->type == bfd_link_hash_undefined) - { - asection *sec; - - h->type = bfd_link_hash_defined; - - sec = bfd_get_section_by_name (link_info.output_bfd, secname); - if (sec == NULL) - h->u.def.value = 0; - else - h->u.def.value = bfd_get_section_vma (link_info.output_bfd, sec); - - h->u.def.section = bfd_abs_section_ptr; - } -} - -/* Create an absolute symbol with the given name with the value of the - address of the first byte after the end of the section named. - - If the symbol already exists, then do nothing. */ - -void -lang_abs_symbol_at_end_of (const char *secname, const char *name) -{ - struct bfd_link_hash_entry *h; - - h = bfd_link_hash_lookup (link_info.hash, name, TRUE, TRUE, TRUE); - if (h == NULL) - einfo (_("%P%F: bfd_link_hash_lookup failed: %E\n")); - - if (h->type == bfd_link_hash_new - || h->type == bfd_link_hash_undefined) - { - asection *sec; - - h->type = bfd_link_hash_defined; - - sec = bfd_get_section_by_name (link_info.output_bfd, secname); - if (sec == NULL) - h->u.def.value = 0; - else - h->u.def.value = (bfd_get_section_vma (link_info.output_bfd, sec) - + TO_ADDR (sec->size)); - - h->u.def.section = bfd_abs_section_ptr; - } -} - void lang_statement_append (lang_statement_list_type *list, lang_statement_union_type *element, diff --git a/ld/ldlang.h b/ld/ldlang.h index 7f1e743a4d..d5ea8d20e3 100644 --- a/ld/ldlang.h +++ b/ld/ldlang.h @@ -165,6 +165,8 @@ typedef struct lang_output_section_statement_struct unsigned int ignored : 1; /* If this section should update "dot". Prevents section being ignored. */ unsigned int update_dot : 1; + /* If this section is after assignment to _end. */ + unsigned int after_end : 1; } lang_output_section_statement_type; typedef struct @@ -537,10 +539,6 @@ extern void lang_float extern void lang_leave_output_section_statement (fill_type *, const char *, lang_output_section_phdr_list *, const char *); -extern void lang_abs_symbol_at_end_of - (const char *, const char *); -extern void lang_abs_symbol_at_beginning_of - (const char *, const char *); extern void lang_statement_append (lang_statement_list_type *, lang_statement_union_type *, lang_statement_union_type **); @@ -552,6 +550,8 @@ extern void lang_reset_memory_regions (void); extern void lang_do_assignments (lang_phase_type); +extern asection *section_for_dot + (void); #define LANG_FOR_EACH_INPUT_STATEMENT(statement) \ lang_input_statement_type *statement; \ diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 37a3124ecc..1a92466955 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -568,12 +568,13 @@ cat < + + * ld-alpha/emptygot.nm, * ld-alpha/tlsbin.rd, * ld-alpha/tlsbinr.rd, + * ld-alpha/tlspic.rd, * ld-arm/arm-dyn.ld, * ld-arm/armthumb-lib.sym, + * ld-arm/farcall-mixed-app.sym, * ld-arm/mixed-app.sym, + * ld-arm/mixed-lib.sym, * ld-arm/preempt-app.sym, + * ld-cris/libdso-2.d, * ld-cris/pv32-1.d, * ld-cris/tls-e-20.d, + * ld-cris/tls-e-20a.d, * ld-cris/tls-e-80.d, + * ld-cris/tls-e-tpoffcomm1.d, * ld-cris/tls-gc-68.d, + * ld-cris/tls-gc-69.d, * ld-cris/tls-gc-70.d, * ld-cris/tls-gc-71.d, + * ld-cris/tls-gc-75.d, * ld-cris/tls-gc-76.d, * ld-cris/tls-gc-79.d, + * ld-cris/weakhiddso.d, * ld-cris/weakref3.d, * ld-cris/weakref4.d, + * ld-elfvsb/hidden2.d, * ld-i386/tlsbin.rd, * ld-i386/tlsbindesc.rd, + * ld-i386/tlsdesc.rd, * ld-i386/tlsgdesc.rd, * ld-i386/tlsnopic.rd, + * ld-i386/tlspic.rd, * ld-ia64/tlsbin.rd, * ld-ia64/tlspic.rd, + * ld-mips-elf/tlsdyn-o32-1.d, * ld-mips-elf/tlsdyn-o32-1.got, + * ld-mips-elf/tlsdyn-o32-2.d, * ld-mips-elf/tlsdyn-o32-2.got, + * ld-mips-elf/tlsdyn-o32-3.d, * ld-mips-elf/tlsdyn-o32-3.got, + * ld-mmix/bpo-10.d, * ld-mmix/bpo-11.d, * ld-mmix/greg-6.d, + * ld-mmix/greg-7.d, * ld-mmix/loc1.d, * ld-mmix/loc2.d, + * ld-mmix/loc3.d, * ld-mmix/loc4.d, * ld-mmix/loc6.d, + * ld-mmix/locdo-1.d, * ld-mmix/loct-1.d, * ld-mmix/locto-1.d, + * ld-mmix/start-1.d, * ld-mmix/undef-3.d, * ld-powerpc/relbrlt.d, + * ld-powerpc/tlsexe.r, * ld-powerpc/tlsexe32.r, + * ld-powerpc/tlsexetoc.r, * ld-powerpc/tlsso.r, + * ld-powerpc/tlsso32.r, * ld-powerpc/tlstocso.r, + * ld-s390/tlsbin.rd, * ld-s390/tlsbin_64.rd, * ld-s390/tlspic.rd, + * ld-s390/tlspic_64.rd, * ld-scripts/empty-address-1.d, + * ld-scripts/empty-address-2a.d, * ld-scripts/empty-address-2b.d, + * ld-scripts/empty-address-3a.d, * ld-scripts/empty-address-3b.d, + * ld-scripts/empty-address-3c.d, * ld-sh/sh64/abi32.xd, + * ld-sh/sh64/abi64.xd, * ld-sh/sh64/cmpct1.xd, + * ld-sh/sh64/crange1.rd, * ld-sh/sh64/crange2.rd, + * ld-sh/sh64/crange3-cmpct.rd, * ld-sh/sh64/crange3-media.rd, + * ld-sh/sh64/crange3.rd, * ld-sh/sh64/mix1.xd, * ld-sh/sh64/mix2.xd, + * ld-sh/sh64/shdl32.xd, * ld-sh/sh64/shdl64.xd, + * ld-sparc/gotop32.rd, * ld-sparc/gotop64.rd, + * ld-sparc/tlssunbin32.rd, * ld-sparc/tlssunbin64.rd, + * ld-sparc/tlssunnopic32.rd, * ld-sparc/tlssunnopic64.rd, + * ld-sparc/tlssunpic32.rd, * ld-sparc/tlssunpic64.rd, + * ld-spu/icache1.d, * ld-spu/pic.d, * ld-tic6x/shlib-1.rd, + * ld-tic6x/shlib-1b.rd, * ld-tic6x/shlib-1r.rd, + * ld-tic6x/shlib-1rb.rd, * ld-tic6x/shlib-app-1.rd, + * ld-tic6x/shlib-app-1b.rd, * ld-tic6x/shlib-app-1r.rd, + * ld-tic6x/shlib-app-1rb.rd, * ld-tic6x/shlib-noindex.rd, + * ld-tic6x/static-app-1.rd, * ld-tic6x/static-app-1b.rd, + * ld-tic6x/static-app-1r.rd, * ld-tic6x/static-app-1rb.rd, + * ld-x86-64/tlsbin.rd, * ld-x86-64/tlsbindesc.rd, + * ld-x86-64/tlsdesc.rd, * ld-x86-64/tlsgdesc.rd, + * ld-x86-64/tlspic.rd: Update. + * ld-tic6x/dsbt-be.ld: Add ". = .;" before __c6xabi_DSBT_BASE. + * ld-tic6x/dsbt.ld: Likewise. + 2012-06-13 Nick Clifton * ld-arm/arm-app-abs32.d; Update expected disassembly in line with diff --git a/ld/testsuite/ld-alpha/emptygot.nm b/ld/testsuite/ld-alpha/emptygot.nm index db3a03d89d..d62f2b17f4 100644 --- a/ld/testsuite/ld-alpha/emptygot.nm +++ b/ld/testsuite/ld-alpha/emptygot.nm @@ -1,5 +1,5 @@ 00000001200000b0 T _start -00000001200100b8 A __bss_start -00000001200100b8 A _edata +00000001200100b8 S __bss_start +00000001200100b8 D _edata 00000001200100b8 s foo -00000001200100c0 A _end +00000001200100c0 S _end diff --git a/ld/testsuite/ld-alpha/tlsbin.rd b/ld/testsuite/ld-alpha/tlsbin.rd index 64c28f61d7..eae8df55f9 100644 --- a/ld/testsuite/ld-alpha/tlsbin.rd +++ b/ld/testsuite/ld-alpha/tlsbin.rd @@ -59,10 +59,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: [0-9 ]+: [0-9a-f]+ +0 +NOTYPE +LOCAL +DEFAULT +UND * [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 [0-9 ]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 __bss_start [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _edata +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -120,15 +120,15 @@ Symbol table '\.symtab' contains [0-9]+ entries: [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh4 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +10 bg7 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh5 -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 __bss_start [0-9 ]+: [0-9a-f]+ +136 +FUNC +GLOBAL +DEFAULT +\[: 88\] +7 fn2 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg2 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh1 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg6 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg7 -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _edata +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _end [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh2 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh6 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +10 bg2 diff --git a/ld/testsuite/ld-alpha/tlsbinr.rd b/ld/testsuite/ld-alpha/tlsbinr.rd index 78229c464c..b0de14c6d3 100644 --- a/ld/testsuite/ld-alpha/tlsbinr.rd +++ b/ld/testsuite/ld-alpha/tlsbinr.rd @@ -54,10 +54,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: [0-9 ]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND [0-9 ]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 [0-9 ]+: 0+ +0 +FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 __bss_start [0-9 ]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _edata +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -115,15 +115,15 @@ Symbol table '\.symtab' contains [0-9]+ entries: [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh4 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +10 bg7 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh5 -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 __bss_start [0-9 ]+: [0-9a-f]+ +136 +FUNC +GLOBAL +DEFAULT +\[: 88\] +7 fn2 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg2 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh1 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg6 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg7 -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata -[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _edata +[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _end [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh2 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +9 sh6 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +10 bg2 diff --git a/ld/testsuite/ld-alpha/tlspic.rd b/ld/testsuite/ld-alpha/tlspic.rd index 58de2d070e..1281687287 100644 --- a/ld/testsuite/ld-alpha/tlspic.rd +++ b/ld/testsuite/ld-alpha/tlspic.rd @@ -64,12 +64,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 .* [0-9a-f]+ +172 +FUNC +GLOBAL +DEFAULT +\[: 88\] +6 fn1 -.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg2 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg6 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg7 -.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end +.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata +.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -122,9 +122,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 .* [0-9a-f]+ +172 +FUNC +GLOBAL +DEFAULT +\[: 88\] +6 fn1 -.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg2 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg6 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg7 -.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end +.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata +.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end diff --git a/ld/testsuite/ld-arm/arm-dyn.ld b/ld/testsuite/ld-arm/arm-dyn.ld index 736fb17841..bef9a182d3 100644 --- a/ld/testsuite/ld-arm/arm-dyn.ld +++ b/ld/testsuite/ld-arm/arm-dyn.ld @@ -138,6 +138,7 @@ SECTIONS .data1 : { *(.data1) } _edata = .; PROVIDE (edata = .); + . = .; __bss_start = .; __bss_start__ = .; .bss : diff --git a/ld/testsuite/ld-arm/armthumb-lib.sym b/ld/testsuite/ld-arm/armthumb-lib.sym index c7f472824b..f1358e2ba1 100644 --- a/ld/testsuite/ld-arm/armthumb-lib.sym +++ b/ld/testsuite/ld-arm/armthumb-lib.sym @@ -1,15 +1,15 @@ Symbol table for image: +Num +Buc: +Value +Size +Type +Bind +Vis +Ndx +Name - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 _edata + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __bss_start__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 _end +.. +..: ........ +4 +OBJECT +GLOBAL +DEFAULT +9 data_obj - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __bss_end__ +.. +..: .......0 +20 +FUNC +GLOBAL +DEFAULT +6 lib_func1 +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __data_start - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __end__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __bss_start +.. +..: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +UND app_func2 +.. +..: .......0 +2 +FUNC +GLOBAL +DEFAULT +6 lib_func2 - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 _bss_end__ diff --git a/ld/testsuite/ld-arm/farcall-mixed-app.sym b/ld/testsuite/ld-arm/farcall-mixed-app.sym index 8e04cc326f..093397cfa6 100644 --- a/ld/testsuite/ld-arm/farcall-mixed-app.sym +++ b/ld/testsuite/ld-arm/farcall-mixed-app.sym @@ -1,15 +1,15 @@ Symbol table for image: +Num +Buc: +Value +Size +Type +Bind +Vis +Ndx +Name - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +11 _edata + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end +.. +..: ........ +4 +OBJECT +GLOBAL +DEFAULT +12 data_obj - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_end__ +.. +..: 0*[^0]*.* +0 +FUNC +GLOBAL +DEFAULT +UND lib_func1 +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +11 __data_start - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __end__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 __end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start +.. +..: .......0 +0 +FUNC +GLOBAL +DEFAULT +14 app_func2 +.. +..: 0*[^0]*.* +0 +FUNC +GLOBAL +DEFAULT +UND lib_func2 - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 _bss_end__ diff --git a/ld/testsuite/ld-arm/mixed-app.sym b/ld/testsuite/ld-arm/mixed-app.sym index 2884b3d405..cfa35f5c30 100644 --- a/ld/testsuite/ld-arm/mixed-app.sym +++ b/ld/testsuite/ld-arm/mixed-app.sym @@ -1,15 +1,15 @@ Symbol table for image: +Num +Buc: +Value +Size +Type +Bind +Vis +Ndx +Name - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +11 _edata + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end +.. +..: ........ +4 +OBJECT +GLOBAL +DEFAULT +12 data_obj - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_end__ +.. +..: 0*[^0]*.* +0 +FUNC +GLOBAL +DEFAULT +UND lib_func1 +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +11 __data_start - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __end__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 __end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start +.. +..: .......0 +0 +FUNC +GLOBAL +DEFAULT +8 app_func2 +.. +..: 0*[^0]*.* +0 +FUNC +GLOBAL +DEFAULT +UND lib_func2 - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +12 _bss_end__ diff --git a/ld/testsuite/ld-arm/mixed-lib.sym b/ld/testsuite/ld-arm/mixed-lib.sym index 9f7a3260cb..f5b16dcb30 100644 --- a/ld/testsuite/ld-arm/mixed-lib.sym +++ b/ld/testsuite/ld-arm/mixed-lib.sym @@ -1,15 +1,15 @@ Symbol table for image: +Num +Buc: +Value +Size +Type +Bind +Vis +Ndx +Name - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 _edata + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __bss_start__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 _end +.. +..: ........ +4 +OBJECT +GLOBAL +DEFAULT +9 data_obj - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __bss_end__ +.. +..: .......0 +20 +FUNC +GLOBAL +DEFAULT +6 lib_func1 +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __data_start - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __end__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __bss_start +.. +..: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +UND app_func2 +.. +..: .......1 +2 +FUNC +GLOBAL +DEFAULT +6 lib_func2 - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 _bss_end__ diff --git a/ld/testsuite/ld-arm/preempt-app.sym b/ld/testsuite/ld-arm/preempt-app.sym index c169757bcb..ec1d6beabb 100644 --- a/ld/testsuite/ld-arm/preempt-app.sym +++ b/ld/testsuite/ld-arm/preempt-app.sym @@ -1,14 +1,14 @@ Symbol table for image: +Num +Buc: +Value +Size +Type +Bind +Vis +Ndx +Name - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 _edata + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +10 __bss_start__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +10 _end +.. +..: ........ +4 +OBJECT +GLOBAL +DEFAULT +10 data_obj - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +10 __bss_end__ +.. +..: .......1 +20 +FUNC +GLOBAL +DEFAULT +6 lib_func1 +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +9 __data_start - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __end__ - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +10 __end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +10 __bss_start +.. +..: .......0 +0 +FUNC +GLOBAL +DEFAULT +6 app_func2 - +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _bss_end__ + +.. +..: ........ +0 +NOTYPE +GLOBAL +DEFAULT +10 _bss_end__ diff --git a/ld/testsuite/ld-cris/libdso-2.d b/ld/testsuite/ld-cris/libdso-2.d index d50cceb24d..3b4777aa5d 100644 --- a/ld/testsuite/ld-cris/libdso-2.d +++ b/ld/testsuite/ld-cris/libdso-2.d @@ -49,10 +49,10 @@ Symbol table '\.symtab' contains 18 entries: +8: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 +9: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 +10: 0+2..[046c] +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC - +11: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +ABS __bss_start - +12: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +ABS _edata + +11: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +9 __bss_start + +12: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +9 _edata +13: 0+2..[046c] +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ - +14: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +ABS _end + +14: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +9 _end +15: 0+150 +2 +FUNC +LOCAL +DEFAULT +7 dsofn +16: 0+ +0 +OBJECT +GLOBAL +DEFAULT +ABS TST1 +17: 0+154 +0 +FUNC +GLOBAL +DEFAULT +7 export_1 diff --git a/ld/testsuite/ld-cris/pv32-1.d b/ld/testsuite/ld-cris/pv32-1.d index 16113a23f3..c963ed1eec 100644 --- a/ld/testsuite/ld-cris/pv32-1.d +++ b/ld/testsuite/ld-cris/pv32-1.d @@ -10,10 +10,10 @@ DYNAMIC SYMBOL TABLE: 0+8021e DF \*UND\* 0+ expfn 0+82324 g DO \.bss 0+4 expobj -0+82324 g D \*ABS\* 0+ __bss_start +0+82324 g D \.bss 0+ __bss_start 0+80238 DF \*UND\* 0+ dsofn3 -0+82324 g D \*ABS\* 0+ _edata -0+82340 g D \*ABS\* 0+ _end +0+82324 g D \.got 0+ _edata +0+82340 g D \.bss 0+ _end 0+80264 g DF \.text 0+8 dsofn Contents of section \.interp: diff --git a/ld/testsuite/ld-cris/tls-e-20.d b/ld/testsuite/ld-cris/tls-e-20.d index 5771d74f16..6b4e7142ce 100644 --- a/ld/testsuite/ld-cris/tls-e-20.d +++ b/ld/testsuite/ld-cris/tls-e-20.d @@ -40,11 +40,11 @@ SYMBOL TABLE: 0+80098 g F \.text 0+6 tlsdsofn2 0+8 g \.tdata 0+4 \.hidden x2 0+80094 g \.text 0+ _start -0+820dc g \*ABS\* 0+ __bss_start +0+820dc g \.got 0+ __bss_start 0+800a0 g F \.text 0+6 tlsdsofn 0+4 g \.tdata 0+4 \.hidden x1 -0+820dc g \*ABS\* 0+ _edata -0+820e0 g \*ABS\* 0+ _end +0+820dc g \.got 0+ _edata +0+820e0 g \.got 0+ _end 0+800a8 g F \.text 0+6 tlsdsofn10 Contents of section \.text: diff --git a/ld/testsuite/ld-cris/tls-e-20a.d b/ld/testsuite/ld-cris/tls-e-20a.d index 834bd2499a..13b3be8b82 100644 --- a/ld/testsuite/ld-cris/tls-e-20a.d +++ b/ld/testsuite/ld-cris/tls-e-20a.d @@ -53,13 +53,13 @@ SYMBOL TABLE: 0+80098 g F \.text 0+2a got7fn 0+821b8 g O \.data 0+4 got7var6 0+80094 g \.text 0+ _start -0+821c0 g \*ABS\* 0+ __bss_start +0+821c0 g \.data 0+ __bss_start 0+821a4 g O \.data 0+4 got7var1 0+821b0 g O \.data 0+4 got7var4 0+800cc g F \.text 0+6 tlsdsofn 0+84 g \.tdata 0+4 \.hidden x1 -0+821c0 g \*ABS\* 0+ _edata -0+821c0 g \*ABS\* 0+ _end +0+821c0 g \.data 0+ _edata +0+821c0 g \.data 0+ _end 0+821a8 g O \.data 0+4 got7var2 0+800d4 g F \.text 0+6 tlsdsofn10 diff --git a/ld/testsuite/ld-cris/tls-e-80.d b/ld/testsuite/ld-cris/tls-e-80.d index 603d581c3f..7a6f4599e9 100644 --- a/ld/testsuite/ld-cris/tls-e-80.d +++ b/ld/testsuite/ld-cris/tls-e-80.d @@ -50,11 +50,11 @@ SYMBOL TABLE: 0+4 g \.tdata 0+4 z 0+80094 g \.text 0+ _start 0+80098 g F \.text 0+6 tlsfn -0+820f0 g \*ABS\* 0+ __bss_start +0+820f0 g \.got 0+ __bss_start 0+800b0 g F \.text 0+6 tlsdsofn 0+8 g \.tdata 0+4 \.hidden x1 -0+820f0 g \*ABS\* 0+ _edata -0+82100 g \*ABS\* 0+ _end +0+820f0 g \.got 0+ _edata +0+82100 g \.got 0+ _end 0+10 g \.tbss 0+40 gx 0+800b8 g F \.text 0+6 tlsdsofn10 diff --git a/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d b/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d index 48a52ea42d..b1f39ec97e 100644 --- a/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d +++ b/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d @@ -23,19 +23,19 @@ Idx Name Size VMA LMA File off Algn 1 .tbss 0+8 0+82084 0+82084 0+84 2\*\*2 ALLOC, THREAD_LOCAL SYMBOL TABLE: -0+80074 l d .text 0+ .text -0+82084 l d .tbss 0+ .tbss +0+80074 l d \.text 0+ \.text +0+82084 l d \.tbss 0+ \.tbss 0+ l df \*ABS\* 0+ .* -0+80078 l F .text 0+c do_test +0+80078 l F \.text 0+c do_test 0+ l df \*ABS\* 0+ .* -0+80074 g .text 0+ _start -0+82084 g \*ABS\* 0+ __bss_start -0+ g .tbss 0+4 foo -0+82084 g \*ABS\* 0+ _edata -0+820a0 g \*ABS\* 0+ _end -0+4 g .tbss 0+4 bar +0+80074 g \.text 0+ _start +0+82084 g \.text 0+ __bss_start +0+ g \.tbss 0+4 foo +0+82084 g \.text 0+ _edata +0+820a0 g \.text 0+ _end +0+4 g \.tbss 0+4 bar #... -Disassembly of section .text: +Disassembly of section \.text: 00080074 <_start>: 80074: 41b2 moveq 1,\$r11 diff --git a/ld/testsuite/ld-cris/tls-gc-68.d b/ld/testsuite/ld-cris/tls-gc-68.d index 4b639913cb..6d3121b9a5 100644 --- a/ld/testsuite/ld-cris/tls-gc-68.d +++ b/ld/testsuite/ld-cris/tls-gc-68.d @@ -19,15 +19,15 @@ Program Header: private flags = 0: SYMBOL TABLE: -0+80074 l d .text 0+ .text -0+82078 l d .got 0+ .got -0+82084 l \*ABS\* 0+ __bss_start -0+82084 l \*ABS\* 0+ _edata -0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ -0+820a0 l \*ABS\* 0+ _end -0+80074 g .text 0+ _start +0+80074 l d \.text 0+ \.text +0+82078 l d \.got 0+ \.got +0+82084 l \.got 0+ __bss_start +0+82084 l \.got 0+ _edata +0+82078 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ +0+820a0 l \.got 0+ _end +0+80074 g \.text 0+ _start -Contents of section .text: +Contents of section \.text: 80074 41b20+ .* -Contents of section .got: +Contents of section \.got: 82078 0+ 0+ 0+ .* diff --git a/ld/testsuite/ld-cris/tls-gc-69.d b/ld/testsuite/ld-cris/tls-gc-69.d index f14deec520..482088ce99 100644 --- a/ld/testsuite/ld-cris/tls-gc-69.d +++ b/ld/testsuite/ld-cris/tls-gc-69.d @@ -20,13 +20,13 @@ Program Header: private flags = 0: SYMBOL TABLE: -0+80074 l d .text 0+ .text -0+82078 l d .got 0+ .got -0+82084 l \*ABS\* 0+ __bss_start -0+82084 l \*ABS\* 0+ _edata -0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ -0+820a0 l \*ABS\* 0+ _end -0+80074 g .text 0+ _start +0+80074 l d \.text 0+ \.text +0+82078 l d \.got 0+ \.got +0+82084 l \.got 0+ __bss_start +0+82084 l \.got 0+ _edata +0+82078 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ +0+820a0 l \.got 0+ _end +0+80074 g \.text 0+ _start Contents of section .text: 80074 41b20+ .* diff --git a/ld/testsuite/ld-cris/tls-gc-70.d b/ld/testsuite/ld-cris/tls-gc-70.d index dbeb9d0707..83b4c0bfe0 100644 --- a/ld/testsuite/ld-cris/tls-gc-70.d +++ b/ld/testsuite/ld-cris/tls-gc-70.d @@ -20,15 +20,15 @@ Program Header: private flags = 0: SYMBOL TABLE: -0+80074 l d .text 0+ .text -0+82078 l d .got 0+ .got -0+82084 l \*ABS\* 0+ __bss_start -0+82084 l \*ABS\* 0+ _edata -0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ -0+820a0 l \*ABS\* 0+ _end -0+80074 g .text 0+ _start +0+80074 l d \.text 0+ \.text +0+82078 l d \.got 0+ \.got +0+82084 l \.got 0+ __bss_start +0+82084 l \.got 0+ _edata +0+82078 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ +0+820a0 l \.got 0+ _end +0+80074 g \.text 0+ _start -Contents of section .text: +Contents of section \.text: 80074 41b20+ .* -Contents of section .got: +Contents of section \.got: 82078 0+ 0+ 0+ .* diff --git a/ld/testsuite/ld-cris/tls-gc-71.d b/ld/testsuite/ld-cris/tls-gc-71.d index 29745de735..b580fd3e03 100644 --- a/ld/testsuite/ld-cris/tls-gc-71.d +++ b/ld/testsuite/ld-cris/tls-gc-71.d @@ -15,18 +15,18 @@ filesz 0x0+80 memsz 0x0+80 flags r-- #... DYNAMIC SYMBOL TABLE: -0+18e l d .text 0+ .text -0+2194 l d .tdata 0+ .tdata -0+2280 l D \*ABS\* 0+ __bss_start -0+2280 l D \*ABS\* 0+ _edata -0+2280 l D \*ABS\* 0+ _end -0+18e g DF .text 0+2 _init +0+18e l d \.text 0+ \.text +0+2194 l d \.tdata 0+ \.tdata +0+2280 l D \.got 0+ __bss_start +0+2280 l D \.got 0+ _edata +0+2280 l D \.got 0+ _end +0+18e g DF \.text 0+2 _init 0+ g D .tdata 0+80 tls128 DYNAMIC RELOCATION RECORDS \(none\) #... -Contents of section .text: +Contents of section \.text: 018e 0f050000 .* #... -Contents of section .got: +Contents of section \.got: 2274 14220000 00000000 00000000 .* diff --git a/ld/testsuite/ld-cris/tls-gc-75.d b/ld/testsuite/ld-cris/tls-gc-75.d index b1c77bfc67..472f889bbf 100644 --- a/ld/testsuite/ld-cris/tls-gc-75.d +++ b/ld/testsuite/ld-cris/tls-gc-75.d @@ -22,15 +22,15 @@ Program Header: private flags = 0: SYMBOL TABLE: -0+80074 l d .text 0+ .text -0+82078 l d .got 0+ .got -0+82084 l \*ABS\* 0+ __bss_start -0+82084 l \*ABS\* 0+ _edata -0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ -0+820a0 l \*ABS\* 0+ _end -0+80074 g .text 0+ _start +0+80074 l d \.text 0+ \.text +0+82078 l d \.got 0+ \.got +0+82084 l \.got 0+ __bss_start +0+82084 l \.got 0+ _edata +0+82078 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ +0+820a0 l \.got 0+ _end +0+80074 g \.text 0+ _start -Contents of section .text: +Contents of section \.text: 80074 41b20+ .* -Contents of section .got: +Contents of section \.got: 82078 0+ 0+ 0+ .* diff --git a/ld/testsuite/ld-cris/tls-gc-76.d b/ld/testsuite/ld-cris/tls-gc-76.d index 8f3dcc114e..97edbef119 100644 --- a/ld/testsuite/ld-cris/tls-gc-76.d +++ b/ld/testsuite/ld-cris/tls-gc-76.d @@ -19,22 +19,22 @@ Program Header: private flags = 0: SYMBOL TABLE: -0+80074 l d .text 0+ .text -0+82080 l d .got 0+ .got -0+82090 l d .data 0+ .data +0+80074 l d \.text 0+ \.text +0+82080 l d \.got 0+ \.got +0+82090 l d \.data 0+ \.data 0+ l df \*ABS\* 0+ .* -0+82090 l O .data 0+4 gc76var +0+82090 l O \.data 0+4 gc76var 0+ l df \*ABS\* 0+ .* -0+82094 l \*ABS\* 0+ __bss_start -0+82094 l \*ABS\* 0+ _edata -0+82080 l O .got 0+ _GLOBAL_OFFSET_TABLE_ -0+820a0 l \*ABS\* 0+ _end -0+80074 g .text 0+ _start -0+80078 g F .text 0+6 gc76fn +0+82094 l \.data 0+ __bss_start +0+82094 l \.data 0+ _edata +0+82080 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ +0+820a0 l \.data 0+ _end +0+80074 g \.text 0+ _start +0+80078 g F \.text 0+6 gc76fn -Contents of section .text: +Contents of section \.text: 80074 41b20+ 6fae0c00 0+ .* -Contents of section .got: +Contents of section \.got: 82080 0+ 0+ 0+ 90200800 .* -Contents of section .data: +Contents of section \.data: 82090 0+ .* diff --git a/ld/testsuite/ld-cris/tls-gc-79.d b/ld/testsuite/ld-cris/tls-gc-79.d index eb3646d652..424bfb0af0 100644 --- a/ld/testsuite/ld-cris/tls-gc-79.d +++ b/ld/testsuite/ld-cris/tls-gc-79.d @@ -20,15 +20,15 @@ Program Header: private flags = 0: SYMBOL TABLE: -0+80074 l d .text 0+ .text -0+82078 l d .got 0+ .got -0+82084 l \*ABS\* 0+ __bss_start -0+82084 l \*ABS\* 0+ _edata -0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ -0+820a0 l \*ABS\* 0+ _end -0+80074 g .text 0+ _start +0+80074 l d \.text 0+ \.text +0+82078 l d \.got 0+ \.got +0+82084 l \.got 0+ __bss_start +0+82084 l \.got 0+ _edata +0+82078 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ +0+820a0 l \.got 0+ _end +0+80074 g \.text 0+ _start -Contents of section .text: +Contents of section \.text: 80074 41b20+ .* -Contents of section .got: +Contents of section \.got: 82078 0+ 0+ 0+ .* diff --git a/ld/testsuite/ld-cris/weakhiddso.d b/ld/testsuite/ld-cris/weakhiddso.d index c0908df1d4..01940f737b 100644 --- a/ld/testsuite/ld-cris/weakhiddso.d +++ b/ld/testsuite/ld-cris/weakhiddso.d @@ -10,13 +10,13 @@ .*: file format elf32-cris DYNAMIC SYMBOL TABLE: -0+2214 l d \.data 0+ .data +0+2214 l d \.data 0+ \.data 0+2214 g DO \.data 0+c x 0+ D \*UND\* 0+ xregobj -0+2220 g D \*ABS\* 0+ __bss_start +0+2220 g D \.data 0+ __bss_start 0+ w D \*UND\* 0+ xweakobj -0+2220 g D \*ABS\* 0+ _edata -0+2220 g D \*ABS\* 0+ _end +0+2220 g D \.data 0+ _edata +0+2220 g D \.data 0+ _end DYNAMIC RELOCATION RECORDS @@ -27,5 +27,5 @@ OFFSET TYPE VALUE Contents of section \.hash: #... -Contents of section .data: +Contents of section \.data: 2214 00000000 00000000 00000000 .* diff --git a/ld/testsuite/ld-cris/weakref3.d b/ld/testsuite/ld-cris/weakref3.d index d07f514d61..aea3ad69d9 100644 --- a/ld/testsuite/ld-cris/weakref3.d +++ b/ld/testsuite/ld-cris/weakref3.d @@ -10,27 +10,27 @@ # object, instead yielding NULL. #... - +\[[0-9]+\] .got +PROGBITS +0+82314 000314 000010 04 +WA +0 +0 +4 + +\[[0-9]+\] .got +PROGBITS +[0-9a-f]* [0-9a-f]* 000010 .* #... - +\[[0-9]+\] .bss +NOBITS +0+82324 .* + +\[[0-9]+\] .bss +NOBITS +[0-9a-f]* [0-9a-f]* 000010 .* #... Relocation section '.rela.dyn' at offset 0x... contains 1 entries: Offset +Info +Type +Sym.Value +Sym. Name \+ Addend -00082324 +00000109 R_CRIS_COPY +00082324 +__expobj2 \+ 0 +.* R_CRIS_COPY .* __expobj2 \+ 0 Relocation section '.rela.plt' at offset 0x... contains 1 entries: Offset +Info +Type +Sym.Value +Sym. Name \+ Addend -00082320 +0000030b R_CRIS_JUMP_SLOT +00080238 +expfn2 \+ 0 +.* R_CRIS_JUMP_SLOT .* expfn2 \+ 0 The decoding of unwind sections for machine type Axis Communications 32-bit embedded processor is not currently supported. Symbol table '.dynsym' contains . entries: #... - +.: 00082324 +4 +OBJECT +GLOBAL +DEFAULT +13 __expobj2@TST3 \(2\) + +.: [0-9a-f]* +4 +OBJECT +GLOBAL +DEFAULT +13 __expobj2@TST3 \(2\) #... - +.: 00080238 +0 +FUNC +GLOBAL +DEFAULT +UND expfn2@TST3 \(2\) + +.: [0-9a-f]* +0 +FUNC +GLOBAL +DEFAULT +UND expfn2@TST3 \(2\) #... Symbol table '.symtab' contains .. entries: #... Hex dump of section '\.text': - 0x0008024c 41b20000 6fae2423 08006fae 38020800 .* + 0x000801f8 41b20000 6faed022 08006fae e4010800 .* diff --git a/ld/testsuite/ld-cris/weakref4.d b/ld/testsuite/ld-cris/weakref4.d index 95fb5ec9a8..79de291406 100644 --- a/ld/testsuite/ld-cris/weakref4.d +++ b/ld/testsuite/ld-cris/weakref4.d @@ -11,22 +11,22 @@ # sure we get a valid reloc. #... - +\[[0-9]+\] .data +PROGBITS +0+822a4 0002a4 000004 00 +WA +0 +0 +1 + +\[[0-9]+\] .data +PROGBITS +[0-9a-f]* [0-9a-f]* 000004 .* #... - +\[[0-9]+\] .bss +NOBITS +0+822a8 .* + +\[[0-9]+\] .bss +NOBITS +[0-9a-f]* [0-9a-f]* 00000c .* #... Relocation section '.rela.dyn' at offset 0x... contains 1 entries: #... -000822a8 +00000109 R_CRIS_COPY +000822a8 +__expobj2 \+ 0 +.* R_CRIS_COPY .* __expobj2 \+ 0 The decoding of unwind sections for machine type Axis Communications 32-bit embedded processor is not currently supported. Symbol table '.dynsym' contains . entries: #... - +.: 000822a8 +4 +OBJECT +GLOBAL +DEFAULT +12 __expobj2@TST3 \(2\) + +.: [0-9a-f]* +4 +OBJECT +GLOBAL +DEFAULT +12 __expobj2@TST3 \(2\) #... Symbol table '.symtab' contains .. entries: #... Hex dump of section '.data': - 0x000822a4 a8220800 .* + 0x00082250 54220800 .* diff --git a/ld/testsuite/ld-elfvsb/hidden2.d b/ld/testsuite/ld-elfvsb/hidden2.d index 2996277633..30f7f952e1 100644 --- a/ld/testsuite/ld-elfvsb/hidden2.d +++ b/ld/testsuite/ld-elfvsb/hidden2.d @@ -5,5 +5,5 @@ Symbol table for image: #... -[ ]*[0-9]+ +[0-9]+: [0-9a-fA-F]* +0 +OBJECT +LOCAL +DEFAULT +ABS foo +[ ]*[0-9]+ +[0-9]+: [0-9a-fA-F]* +0 +OBJECT +LOCAL +DEFAULT .* foo #pass diff --git a/ld/testsuite/ld-i386/tlsbin.rd b/ld/testsuite/ld-i386/tlsbin.rd index 81f8ac0bd8..9a9e4aa9a9 100644 --- a/ld/testsuite/ld-i386/tlsbin.rd +++ b/ld/testsuite/ld-i386/tlsbin.rd @@ -78,11 +78,11 @@ Symbol table '\.dynsym' contains [0-9]+ entries: +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG7 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _end +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG8 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +UND ___tls_get_addr @@ -144,7 +144,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0000004c +0 +TLS +GLOBAL +HIDDEN +9 sh4 +[0-9]+: 00000078 +0 +TLS +GLOBAL +DEFAULT +10 bg7 +[0-9]+: 00000050 +0 +TLS +GLOBAL +HIDDEN +9 sh5 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: 0+8049000 +0 +FUNC +GLOBAL +DEFAULT +8 fn2 +[0-9]+: 00000004 +0 +TLS +GLOBAL +DEFAULT +9 sg2 @@ -152,8 +152,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 00000040 +0 +TLS +GLOBAL +HIDDEN +9 sh1 +[0-9]+: 00000014 +0 +TLS +GLOBAL +DEFAULT +9 sg6 +[0-9]+: 00000018 +0 +TLS +GLOBAL +DEFAULT +9 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _end +[0-9]+: 00000044 +0 +TLS +GLOBAL +HIDDEN +9 sh2 +[0-9]+: 00000054 +0 +TLS +GLOBAL +HIDDEN +9 sh6 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG8 diff --git a/ld/testsuite/ld-i386/tlsbindesc.rd b/ld/testsuite/ld-i386/tlsbindesc.rd index a64a508baf..7fa8a4a88a 100644 --- a/ld/testsuite/ld-i386/tlsbindesc.rd +++ b/ld/testsuite/ld-i386/tlsbindesc.rd @@ -72,11 +72,11 @@ Symbol table '\.dynsym' contains [0-9]+ entries: +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG7 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _end +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG8 Symbol table '\.symtab' contains [0-9]+ entries: @@ -136,7 +136,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0000004c +0 +TLS +GLOBAL +HIDDEN +7 sh4 +[0-9]+: 00000078 +0 +TLS +GLOBAL +DEFAULT +8 bg7 +[0-9]+: 00000050 +0 +TLS +GLOBAL +HIDDEN +7 sh5 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: 0+8049000 +0 +FUNC +GLOBAL +DEFAULT +6 fn2 +[0-9]+: 00000004 +0 +TLS +GLOBAL +DEFAULT +7 sg2 @@ -144,8 +144,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 00000040 +0 +TLS +GLOBAL +HIDDEN +7 sh1 +[0-9]+: 00000014 +0 +TLS +GLOBAL +DEFAULT +7 sg6 +[0-9]+: 00000018 +0 +TLS +GLOBAL +DEFAULT +7 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _end +[0-9]+: 00000044 +0 +TLS +GLOBAL +HIDDEN +7 sh2 +[0-9]+: 00000054 +0 +TLS +GLOBAL +HIDDEN +7 sh6 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG8 diff --git a/ld/testsuite/ld-i386/tlsdesc.rd b/ld/testsuite/ld-i386/tlsdesc.rd index 0bba12aaa3..2b382a0da9 100644 --- a/ld/testsuite/ld-i386/tlsdesc.rd +++ b/ld/testsuite/ld-i386/tlsdesc.rd @@ -87,12 +87,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +7 sg5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +7 sg1 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +6 fn1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 __bss_start +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +7 sg2 +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +7 sg6 +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +7 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -143,9 +143,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +7 sg5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +7 sg1 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +6 fn1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 __bss_start +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +7 sg2 +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +7 sg6 +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +7 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _end diff --git a/ld/testsuite/ld-i386/tlsgdesc.rd b/ld/testsuite/ld-i386/tlsgdesc.rd index c539890a3a..1e074c7f40 100644 --- a/ld/testsuite/ld-i386/tlsgdesc.rd +++ b/ld/testsuite/ld-i386/tlsgdesc.rd @@ -67,12 +67,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fc1 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _end +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND ___tls_get_addr Symbol table '\.symtab' contains [0-9]+ entries: @@ -94,10 +94,10 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fc1 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _end +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND ___tls_get_addr diff --git a/ld/testsuite/ld-i386/tlsnopic.rd b/ld/testsuite/ld-i386/tlsnopic.rd index 5ea99ef3fa..418a9f29ac 100644 --- a/ld/testsuite/ld-i386/tlsnopic.rd +++ b/ld/testsuite/ld-i386/tlsnopic.rd @@ -77,10 +77,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: +[0-9]+: 0+1000 +0 +FUNC +GLOBAL +DEFAULT +5 fn3 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sg5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sg1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +9 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sg2 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +9 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +9 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -112,7 +112,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0+1000 +0 +FUNC +GLOBAL +DEFAULT +5 fn3 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sg5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sg1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +9 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sg2 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +9 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +9 _end diff --git a/ld/testsuite/ld-i386/tlspic.rd b/ld/testsuite/ld-i386/tlspic.rd index e9702fba86..7d07cf5fe6 100644 --- a/ld/testsuite/ld-i386/tlspic.rd +++ b/ld/testsuite/ld-i386/tlspic.rd @@ -90,12 +90,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +8 sg5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fn1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +8 sg2 +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +8 sg6 +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +8 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND ___tls_get_addr Symbol table '\.symtab' contains [0-9]+ entries: @@ -147,10 +147,10 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +8 sg5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fn1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +8 sg2 +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +8 sg6 +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +8 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND ___tls_get_addr diff --git a/ld/testsuite/ld-ia64/tlsbin.rd b/ld/testsuite/ld-ia64/tlsbin.rd index 0462e50764..ab2dacd721 100644 --- a/ld/testsuite/ld-ia64/tlsbin.rd +++ b/ld/testsuite/ld-ia64/tlsbin.rd @@ -61,10 +61,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +LOCAL +DEFAULT +UND * .* TLS +GLOBAL +DEFAULT +UND sG2 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +15 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG1 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +15 _edata +.* NOTYPE +GLOBAL +DEFAULT +15 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -123,15 +123,15 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +11 sh4 .* TLS +GLOBAL +DEFAULT +12 bg7 .* TLS +GLOBAL +HIDDEN +11 sh5 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +15 __bss_start .* FUNC +GLOBAL +DEFAULT +8 fn2 .* TLS +GLOBAL +DEFAULT +11 sg2 .* TLS +GLOBAL +DEFAULT +UND sG1 .* TLS +GLOBAL +HIDDEN +11 sh1 .* TLS +GLOBAL +DEFAULT +11 sg6 .* TLS +GLOBAL +DEFAULT +11 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +15 _edata +.* NOTYPE +GLOBAL +DEFAULT +15 _end .* TLS +GLOBAL +HIDDEN +11 sh2 .* TLS +GLOBAL +HIDDEN +11 sh6 .* TLS +GLOBAL +DEFAULT +12 bg2 diff --git a/ld/testsuite/ld-ia64/tlspic.rd b/ld/testsuite/ld-ia64/tlspic.rd index 8ebd46aa10..7abf82d107 100644 --- a/ld/testsuite/ld-ia64/tlspic.rd +++ b/ld/testsuite/ld-ia64/tlspic.rd @@ -66,12 +66,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* TLS +GLOBAL +DEFAULT +10 sg1 .* FUNC +GLOBAL +DEFAULT +7 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +14 __bss_start .* TLS +GLOBAL +DEFAULT +10 sg2 .* TLS +GLOBAL +DEFAULT +10 sg6 .* TLS +GLOBAL +DEFAULT +10 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +14 _edata +.* NOTYPE +GLOBAL +DEFAULT +14 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size Type +Bind +Vis +Ndx Name @@ -125,9 +125,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* TLS +GLOBAL +DEFAULT +10 sg1 .* FUNC +GLOBAL +DEFAULT +7 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +14 __bss_start .* TLS +GLOBAL +DEFAULT +10 sg2 .* TLS +GLOBAL +DEFAULT +10 sg6 .* TLS +GLOBAL +DEFAULT +10 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +14 _edata +.* NOTYPE +GLOBAL +DEFAULT +14 _end diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d index bf803c881b..80c00d31c6 100644 --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d @@ -5,7 +5,7 @@ Disassembly of section .text: .* <__start>: .*: 3c1c0fc0 lui gp,0xfc0 - .*: 279c7b80 addiu gp,gp,31616 + .*: 279c7bf0 addiu gp,gp,31728 .*: 0399e021 addu gp,gp,t9 .*: 27bdfff0 addiu sp,sp,-16 .*: afbe0008 sw s8,8\(sp\) @@ -55,7 +55,7 @@ Disassembly of section .text: .* : .*: 3c1c0fc0 lui gp,0xfc0 - .*: 279c7ac0 addiu gp,gp,31424 + .*: 279c7b30 addiu gp,gp,31536 .*: 0399e021 addu gp,gp,t9 .*: 27bdfff0 addiu sp,sp,-16 .*: afbe0008 sw s8,8\(sp\) diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got index 70539396f8..eb1ff68073 100644 --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got @@ -13,6 +13,6 @@ OFFSET TYPE VALUE Contents of section .got: - 10000020 00000000 80000000 0040053c 00000001 .........@...... + 10000020 00000000 80000000 004004cc 00000001 .........@...... 10000030 00000000 00000000 00000000 00000000 ................ 10000040 00000000 00000000 00000000 ............ diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d index e1f76b54fe..e99862ccae 100644 --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d @@ -5,7 +5,7 @@ Disassembly of section .text: .* <__start>: .*: 3c1c0fc0 lui gp,0xfc0 - .*: 279c7b80 addiu gp,gp,31616 + .*: 279c7bf0 addiu gp,gp,31728 .*: 0399e021 addu gp,gp,t9 .*: 27bdfff0 addiu sp,sp,-16 .*: afbe0008 sw s8,8\(sp\) @@ -55,7 +55,7 @@ Disassembly of section .text: .* : .*: 3c1c0fc0 lui gp,0xfc0 - .*: 279c7ac0 addiu gp,gp,31424 + .*: 279c7b30 addiu gp,gp,31536 .*: 0399e021 addu gp,gp,t9 .*: 27bdfff0 addiu sp,sp,-16 .*: afbe0008 sw s8,8\(sp\) diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got index c5516c53ed..f3134bae41 100644 --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got @@ -13,7 +13,7 @@ OFFSET TYPE VALUE Contents of section .got: - 10000020 00000000 80000000 0040053c 00000000 .* + 10000020 00000000 80000000 004004cc 00000000 .* 10000030 00000000 00000000 00000000 00000000 .* 10000040 00000001 00000000 00000000 00000000 .* 10000050 00000000 00000000 .* diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d index 27db816ff4..ead6a334e5 100644 --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d @@ -5,7 +5,7 @@ Disassembly of section .text: .* : .*: 3c1c0fc0 lui gp,0xfc0 - .*: 279c7b80 addiu gp,gp,31616 + .*: 279c7bf0 addiu gp,gp,31728 .*: 0399e021 addu gp,gp,t9 .*: 27bdfff0 addiu sp,sp,-16 .*: afbe0008 sw s8,8\(sp\) @@ -51,7 +51,7 @@ Disassembly of section .text: .* <__start>: .*: 3c1c0fc0 lui gp,0xfc0 - .*: 279c7ad0 addiu gp,gp,31440 + .*: 279c7b40 addiu gp,gp,31552 .*: 0399e021 addu gp,gp,t9 .*: 27bdfff0 addiu sp,sp,-16 .*: afbe0008 sw s8,8\(sp\) diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got index 54f491e434..8628d46303 100644 --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got @@ -13,7 +13,7 @@ OFFSET TYPE VALUE Contents of section .got: - 10000020 00000000 80000000 004005ec 00000000 .* + 10000020 00000000 80000000 0040057c 00000000 .* 10000030 00000000 00000000 00000000 00000000 .* 10000040 00000001 00000000 00000000 00000000 .* 10000050 00000000 00000000 .* diff --git a/ld/testsuite/ld-mmix/bpo-10.d b/ld/testsuite/ld-mmix/bpo-10.d index 576ce98591..1bc6269f59 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 ce4d80df22..7f47450d43 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 35046d8158..d8157f7a70 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 4b1433ef1d..57df901c84 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 cac26892d7..97db59f7e3 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 7d44c2241a..e00b5efb5e 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 ff0fe8ada2..110fdbc8e2 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 e0c42473ae..dccfb769ae 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 425edaee07..1fce9a4371 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 4a16735067..66a9f32526 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 fb81819e91..853b06523a 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 5c5c391eda..911f9a41c8 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 37c23d6ed4..c8f6ea7f37 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 2571513bb9..93d7a9995d 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\. diff --git a/ld/testsuite/ld-powerpc/relbrlt.d b/ld/testsuite/ld-powerpc/relbrlt.d index 0f0aae0d17..689373cfaf 100644 --- a/ld/testsuite/ld-powerpc/relbrlt.d +++ b/ld/testsuite/ld-powerpc/relbrlt.d @@ -51,7 +51,7 @@ Disassembly of section \.text: Disassembly of section \.branch_lt: -0*157f00e8 <\.branch_lt>: +0*157f00e8 .*: [0-9a-f ]*: 00 00 00 00 .* [0-9a-f ]*: R_PPC64_RELATIVE \*ABS\*\+0x13bf00e0 [0-9a-f ]*: 13 bf 00 e0 .* diff --git a/ld/testsuite/ld-powerpc/tlsexe.r b/ld/testsuite/ld-powerpc/tlsexe.r index 2df7c9d77e..58d8d35b9e 100644 --- a/ld/testsuite/ld-powerpc/tlsexe.r +++ b/ld/testsuite/ld-powerpc/tlsexe.r @@ -66,10 +66,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +UND gd .* TLS +GLOBAL +DEFAULT +UND ld .* TLS +GLOBAL +DEFAULT +9 ld2 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -107,9 +107,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +7 _start .* TLS +GLOBAL +DEFAULT +9 ld2 .* TLS +GLOBAL +DEFAULT +9 ld1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end .* TLS +GLOBAL +DEFAULT +9 gd0 .* TLS +GLOBAL +DEFAULT +9 ie0 diff --git a/ld/testsuite/ld-powerpc/tlsexe32.r b/ld/testsuite/ld-powerpc/tlsexe32.r index 22ce088c35..915832e503 100644 --- a/ld/testsuite/ld-powerpc/tlsexe32.r +++ b/ld/testsuite/ld-powerpc/tlsexe32.r @@ -64,11 +64,11 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +LOCAL +DEFAULT +UND .* TLS +GLOBAL +DEFAULT +UND gd .* TLS +GLOBAL +DEFAULT +UND ld -.* NOTYPE +GLOBAL +DEFAULT +ABS __end -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __end +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -102,12 +102,12 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +9 le1 .* TLS +GLOBAL +DEFAULT +UND ld .* NOTYPE +GLOBAL +DEFAULT +7 _start -.* NOTYPE +GLOBAL +DEFAULT +ABS __end +.* NOTYPE +GLOBAL +DEFAULT +12 __end .* TLS +GLOBAL +DEFAULT +9 ld2 .* TLS +GLOBAL +DEFAULT +9 ld1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end .* TLS +GLOBAL +DEFAULT +9 gd0 .* TLS +GLOBAL +DEFAULT +9 ie0 diff --git a/ld/testsuite/ld-powerpc/tlsexetoc.r b/ld/testsuite/ld-powerpc/tlsexetoc.r index 0b6492048e..63940d3b56 100644 --- a/ld/testsuite/ld-powerpc/tlsexetoc.r +++ b/ld/testsuite/ld-powerpc/tlsexetoc.r @@ -65,10 +65,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +LOCAL +DEFAULT +UND .* TLS +GLOBAL +DEFAULT +UND gd .* TLS +GLOBAL +DEFAULT +UND ld -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -107,9 +107,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +7 _start .* TLS +GLOBAL +DEFAULT +9 ld2 .* TLS +GLOBAL +DEFAULT +9 ld1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end .* TLS +GLOBAL +DEFAULT +9 gd0 .* TLS +GLOBAL +DEFAULT +9 ie0 diff --git a/ld/testsuite/ld-powerpc/tlsso.r b/ld/testsuite/ld-powerpc/tlsso.r index 78ed143058..0fc6b37781 100644 --- a/ld/testsuite/ld-powerpc/tlsso.r +++ b/ld/testsuite/ld-powerpc/tlsso.r @@ -80,9 +80,9 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +6 _start .* TLS +GLOBAL +DEFAULT +8 ld2 .* TLS +GLOBAL +DEFAULT +8 ld1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end .* TLS +GLOBAL +DEFAULT +8 gd0 .* TLS +GLOBAL +DEFAULT +8 ie0 @@ -122,8 +122,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +6 _start .* TLS +GLOBAL +DEFAULT +8 ld2 .* TLS +GLOBAL +DEFAULT +8 ld1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end .* TLS +GLOBAL +DEFAULT +8 gd0 .* TLS +GLOBAL +DEFAULT +8 ie0 diff --git a/ld/testsuite/ld-powerpc/tlsso32.r b/ld/testsuite/ld-powerpc/tlsso32.r index 02d8e84677..d38bb98c4f 100644 --- a/ld/testsuite/ld-powerpc/tlsso32.r +++ b/ld/testsuite/ld-powerpc/tlsso32.r @@ -80,12 +80,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +8 le1 .* TLS +GLOBAL +DEFAULT +UND ld .* NOTYPE +GLOBAL +DEFAULT +6 _start -.* NOTYPE +GLOBAL +DEFAULT +ABS __end +.* NOTYPE +GLOBAL +DEFAULT +11 __end .* TLS +GLOBAL +DEFAULT +8 ld2 .* TLS +GLOBAL +DEFAULT +8 ld1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end .* TLS +GLOBAL +DEFAULT +8 gd0 .* TLS +GLOBAL +DEFAULT +8 ie0 @@ -121,11 +121,11 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +8 le1 .* TLS +GLOBAL +DEFAULT +UND ld .* NOTYPE +GLOBAL +DEFAULT +6 _start -.* NOTYPE +GLOBAL +DEFAULT +ABS __end +.* NOTYPE +GLOBAL +DEFAULT +11 __end .* TLS +GLOBAL +DEFAULT +8 ld2 .* TLS +GLOBAL +DEFAULT +8 ld1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end .* TLS +GLOBAL +DEFAULT +8 gd0 .* TLS +GLOBAL +DEFAULT +8 ie0 diff --git a/ld/testsuite/ld-powerpc/tlstocso.r b/ld/testsuite/ld-powerpc/tlstocso.r index dc9f930206..a0bc863e8d 100644 --- a/ld/testsuite/ld-powerpc/tlstocso.r +++ b/ld/testsuite/ld-powerpc/tlstocso.r @@ -75,9 +75,9 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +6 _start .* TLS +GLOBAL +DEFAULT +8 ld2 .* TLS +GLOBAL +DEFAULT +8 ld1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end .* TLS +GLOBAL +DEFAULT +8 gd0 .* TLS +GLOBAL +DEFAULT +8 ie0 @@ -118,8 +118,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +6 _start .* TLS +GLOBAL +DEFAULT +8 ld2 .* TLS +GLOBAL +DEFAULT +8 ld1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end .* TLS +GLOBAL +DEFAULT +8 gd0 .* TLS +GLOBAL +DEFAULT +8 ie0 diff --git a/ld/testsuite/ld-s390/tlsbin.rd b/ld/testsuite/ld-s390/tlsbin.rd index e842038897..b9efe8a901 100644 --- a/ld/testsuite/ld-s390/tlsbin.rd +++ b/ld/testsuite/ld-s390/tlsbin.rd @@ -37,7 +37,7 @@ There are [0-9]+ program headers, starting at offset [0-9]+ Program Headers: +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align +PHDR +0x0+34 0x0+400034 0x0+400034 0x0+c0 0x0+c0 R E 0x4 - +INTERP +0x0+f4 0x0+4000f4 0x0+4000f4 0x0+11 0x0+11 R +0x1 + +INTERP +0x0+f4 0x0+4000f4 0x0+4000f4 0x0+d 0x0+d R +0x1 .*Requesting program interpreter.* +LOAD .* R E 0x1000 +LOAD .* RW +0x1000 @@ -70,11 +70,11 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +UND sG3 .* TLS +GLOBAL +DEFAULT +UND sG2 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_offset -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* TLS +GLOBAL +DEFAULT +UND sG1 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +12 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -131,7 +131,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +9 sh4 .* TLS +GLOBAL +DEFAULT +10 bg7 .* TLS +GLOBAL +HIDDEN +9 sh5 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* FUNC +GLOBAL +DEFAULT +8 fn2 .* TLS +GLOBAL +DEFAULT +9 sg2 @@ -139,8 +139,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +9 sh1 .* TLS +GLOBAL +DEFAULT +9 sg6 .* TLS +GLOBAL +DEFAULT +9 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +12 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end .* TLS +GLOBAL +HIDDEN +9 sh2 .* TLS +GLOBAL +HIDDEN +9 sh6 .* TLS +GLOBAL +DEFAULT +10 bg2 diff --git a/ld/testsuite/ld-s390/tlsbin_64.rd b/ld/testsuite/ld-s390/tlsbin_64.rd index 1dcb6b72df..f461f5157e 100644 --- a/ld/testsuite/ld-s390/tlsbin_64.rd +++ b/ld/testsuite/ld-s390/tlsbin_64.rd @@ -37,7 +37,7 @@ There are [0-9]+ program headers, starting at offset [0-9]+ Program Headers: +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align +PHDR +0x0+40 0x0+80000040 0x0+80000040 0x0+150 0x0+150 R E 0x8 - +INTERP +0x0+190 0x0+80000190 0x0+80000190 0x0+11 0x0+11 R +0x1 + +INTERP +0x0+190 0x0+80000190 0x0+80000190 0x0+f 0x0+f R +0x1 .*Requesting program interpreter.* +LOAD .* R E 0x1000 +LOAD .* RW +0x1000 @@ -70,11 +70,11 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +UND sG3 .* TLS +GLOBAL +DEFAULT +UND sG2 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_offset -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* TLS +GLOBAL +DEFAULT +UND sG1 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +12 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -91,6 +91,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +10 .* SECTION +LOCAL +DEFAULT +11 .* SECTION +LOCAL +DEFAULT +12 +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +9 sl1 .* TLS +LOCAL +DEFAULT +9 sl2 .* TLS +LOCAL +DEFAULT +9 sl3 @@ -99,6 +100,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +9 sl6 .* TLS +LOCAL +DEFAULT +9 sl7 .* TLS +LOCAL +DEFAULT +9 sl8 +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +10 bl1 .* TLS +LOCAL +DEFAULT +10 bl2 .* TLS +LOCAL +DEFAULT +10 bl3 @@ -107,6 +109,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +10 bl6 .* TLS +LOCAL +DEFAULT +10 bl7 .* TLS +LOCAL +DEFAULT +10 bl8 +.* FILE +LOCAL +DEFAULT +ABS .* .* OBJECT +LOCAL +DEFAULT +11 _DYNAMIC .* OBJECT +LOCAL +DEFAULT +12 _GLOBAL_OFFSET_TABLE_ .* TLS +GLOBAL +DEFAULT +UND sG3 @@ -128,7 +131,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +9 sh4 .* TLS +GLOBAL +DEFAULT +10 bg7 .* TLS +GLOBAL +HIDDEN +9 sh5 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* FUNC +GLOBAL +DEFAULT +8 fn2 .* TLS +GLOBAL +DEFAULT +9 sg2 @@ -136,8 +139,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +9 sh1 .* TLS +GLOBAL +DEFAULT +9 sg6 .* TLS +GLOBAL +DEFAULT +9 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +12 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end .* TLS +GLOBAL +HIDDEN +9 sh2 .* TLS +GLOBAL +HIDDEN +9 sh6 .* TLS +GLOBAL +DEFAULT +10 bg2 diff --git a/ld/testsuite/ld-s390/tlspic.rd b/ld/testsuite/ld-s390/tlspic.rd index 8da987c813..5d2704875b 100644 --- a/ld/testsuite/ld-s390/tlspic.rd +++ b/ld/testsuite/ld-s390/tlspic.rd @@ -80,12 +80,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_offset .* TLS +GLOBAL +DEFAULT +8 sg1 .* FUNC +GLOBAL +DEFAULT +7 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start .* TLS +GLOBAL +DEFAULT +8 sg2 .* TLS +GLOBAL +DEFAULT +8 sg6 .* TLS +GLOBAL +DEFAULT +8 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -136,9 +136,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_offset .* TLS +GLOBAL +DEFAULT +8 sg1 .* FUNC +GLOBAL +DEFAULT +7 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start .* TLS +GLOBAL +DEFAULT +8 sg2 .* TLS +GLOBAL +DEFAULT +8 sg6 .* TLS +GLOBAL +DEFAULT +8 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end diff --git a/ld/testsuite/ld-s390/tlspic_64.rd b/ld/testsuite/ld-s390/tlspic_64.rd index 709a6c584c..f4cce13472 100644 --- a/ld/testsuite/ld-s390/tlspic_64.rd +++ b/ld/testsuite/ld-s390/tlspic_64.rd @@ -80,12 +80,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_offset .* TLS +GLOBAL +DEFAULT +8 sg1 .* FUNC +GLOBAL +DEFAULT +7 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start .* TLS +GLOBAL +DEFAULT +8 sg2 .* TLS +GLOBAL +DEFAULT +8 sg6 .* TLS +GLOBAL +DEFAULT +8 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -136,9 +136,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_offset .* TLS +GLOBAL +DEFAULT +8 sg1 .* FUNC +GLOBAL +DEFAULT +7 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start .* TLS +GLOBAL +DEFAULT +8 sg2 .* TLS +GLOBAL +DEFAULT +8 sg6 .* TLS +GLOBAL +DEFAULT +8 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end diff --git a/ld/testsuite/ld-scripts/empty-address-1.d b/ld/testsuite/ld-scripts/empty-address-1.d index 29301ea8ea..f43e4c38e6 100644 --- a/ld/testsuite/ld-scripts/empty-address-1.d +++ b/ld/testsuite/ld-scripts/empty-address-1.d @@ -4,6 +4,6 @@ #... 0+0 T _start #... -0+2000000 A __data_end +0+2000000 [ADT] __data_end 0+2000000 [ADT] __data_start #pass diff --git a/ld/testsuite/ld-scripts/empty-address-2a.d b/ld/testsuite/ld-scripts/empty-address-2a.d index 689db611f1..51550418dc 100644 --- a/ld/testsuite/ld-scripts/empty-address-2a.d +++ b/ld/testsuite/ld-scripts/empty-address-2a.d @@ -5,5 +5,5 @@ #... 0+0 T _start #... -0+10 A __data_end +0+10 [ADT] __data_end #pass diff --git a/ld/testsuite/ld-scripts/empty-address-2b.d b/ld/testsuite/ld-scripts/empty-address-2b.d index 0c58946b64..22f6e265f0 100644 --- a/ld/testsuite/ld-scripts/empty-address-2b.d +++ b/ld/testsuite/ld-scripts/empty-address-2b.d @@ -5,5 +5,5 @@ #... 0+0 T _start #... -0+10 A __data_end +0+10 [ADT] __data_end #pass diff --git a/ld/testsuite/ld-scripts/empty-address-3a.d b/ld/testsuite/ld-scripts/empty-address-3a.d index f475d41e35..68d166399d 100644 --- a/ld/testsuite/ld-scripts/empty-address-3a.d +++ b/ld/testsuite/ld-scripts/empty-address-3a.d @@ -5,5 +5,5 @@ #... 0+0 T _start #... -0+10 A __data_end +0+10 [DT] __data_end #pass diff --git a/ld/testsuite/ld-scripts/empty-address-3b.d b/ld/testsuite/ld-scripts/empty-address-3b.d index 0a97fc24d5..d3ebee3b56 100644 --- a/ld/testsuite/ld-scripts/empty-address-3b.d +++ b/ld/testsuite/ld-scripts/empty-address-3b.d @@ -5,5 +5,5 @@ #... 0+0 T _start #... -0+10 A __data_end +0+10 [DT] __data_end #pass diff --git a/ld/testsuite/ld-scripts/empty-address-3c.d b/ld/testsuite/ld-scripts/empty-address-3c.d index 6001885bc7..7fac2f6499 100644 --- a/ld/testsuite/ld-scripts/empty-address-3c.d +++ b/ld/testsuite/ld-scripts/empty-address-3c.d @@ -4,7 +4,7 @@ #... 0+0 T _start #... -0+1010 A __data_end +0+1010 [ADT] __data_end #... 0+1010 [ADT] __data_start #pass diff --git a/ld/testsuite/ld-sh/sh64/abi32.xd b/ld/testsuite/ld-sh/sh64/abi32.xd index 34bf961654..f451b8136b 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 12fdc5ae9c..7018739b39 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 317d044d05..b32f820907 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 2546130ff7..10cd3b3874 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 +\[: 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 +\[: 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 5bff4c3f60..131712c59c 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 +\[: 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 65b3dfad89..c00366a904 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 +\[: 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 +\[: 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 e443ad90cf..52d4d00ec1 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 +\[: 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 +\[: 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 58f511c0d0..817f8f663b 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 +\[: 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 +\[: 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 8015f23f7d..5011676504 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 0bece0939e..ddd0632b93 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 94a2c2b840..8606b6ff1f 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 aa97cb7996..47f35a7312 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 diff --git a/ld/testsuite/ld-sparc/gotop32.rd b/ld/testsuite/ld-sparc/gotop32.rd index 3778a218cb..acbbdeb18f 100644 --- a/ld/testsuite/ld-sparc/gotop32.rd +++ b/ld/testsuite/ld-sparc/gotop32.rd @@ -42,10 +42,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +LOCAL +DEFAULT +UND * .* SECTION +LOCAL +DEFAULT +5 * .* SECTION +LOCAL +DEFAULT +7 * -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start .* FUNC +GLOBAL +DEFAULT +5 foo -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +8 _edata +.* NOTYPE +GLOBAL +DEFAULT +8 _end .* NOTYPE +GLOBAL +DEFAULT +8 sym Symbol table '\.symtab' contains [0-9]+ entries: @@ -65,9 +65,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ .* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start .* FUNC +GLOBAL +DEFAULT +5 foo -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +8 _edata +.* NOTYPE +GLOBAL +DEFAULT +8 _end .* NOTYPE +GLOBAL +DEFAULT +8 sym diff --git a/ld/testsuite/ld-sparc/gotop64.rd b/ld/testsuite/ld-sparc/gotop64.rd index ebcd18cea5..08a9514a86 100644 --- a/ld/testsuite/ld-sparc/gotop64.rd +++ b/ld/testsuite/ld-sparc/gotop64.rd @@ -42,10 +42,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +LOCAL +DEFAULT +UND * .* SECTION +LOCAL +DEFAULT +5 * .* SECTION +LOCAL +DEFAULT +7 * -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start .* FUNC +GLOBAL +DEFAULT +5 foo -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +8 _edata +.* NOTYPE +GLOBAL +DEFAULT +8 _end .* NOTYPE +GLOBAL +DEFAULT +8 sym Symbol table '\.symtab' contains [0-9]+ entries: @@ -65,9 +65,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ .* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start .* FUNC +GLOBAL +DEFAULT +5 foo -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +8 _edata +.* NOTYPE +GLOBAL +DEFAULT +8 _end .* NOTYPE +GLOBAL +DEFAULT +8 sym diff --git a/ld/testsuite/ld-sparc/tlssunbin32.rd b/ld/testsuite/ld-sparc/tlssunbin32.rd index 09512fca75..7212732eaa 100644 --- a/ld/testsuite/ld-sparc/tlssunbin32.rd +++ b/ld/testsuite/ld-sparc/tlssunbin32.rd @@ -52,11 +52,11 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +UND sG5 .* TLS +GLOBAL +DEFAULT +UND sG2 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* TLS +GLOBAL +DEFAULT +UND sG1 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +10 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -112,7 +112,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +7 sh4 .* TLS +GLOBAL +DEFAULT +8 bg7 .* TLS +GLOBAL +HIDDEN +7 sh5 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* FUNC +GLOBAL +DEFAULT +6 fn2 .* TLS +GLOBAL +DEFAULT +7 sg2 @@ -120,8 +120,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +7 sh1 .* TLS +GLOBAL +DEFAULT +7 sg6 .* TLS +GLOBAL +DEFAULT +7 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +10 _end .* TLS +GLOBAL +HIDDEN +7 sh2 .* TLS +GLOBAL +HIDDEN +7 sh6 .* TLS +GLOBAL +DEFAULT +8 bg2 diff --git a/ld/testsuite/ld-sparc/tlssunbin64.rd b/ld/testsuite/ld-sparc/tlssunbin64.rd index cd69288f4e..5480dab926 100644 --- a/ld/testsuite/ld-sparc/tlssunbin64.rd +++ b/ld/testsuite/ld-sparc/tlssunbin64.rd @@ -52,11 +52,11 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +UND sG5 .* TLS +GLOBAL +DEFAULT +UND sG2 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* TLS +GLOBAL +DEFAULT +UND sG1 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +10 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size Type +Bind +Vis +Ndx Name @@ -112,7 +112,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +7 sh4 .* TLS +GLOBAL +DEFAULT +8 bg7 .* TLS +GLOBAL +HIDDEN +7 sh5 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +10 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* FUNC +GLOBAL +DEFAULT +6 fn2 .* TLS +GLOBAL +DEFAULT +7 sg2 @@ -120,8 +120,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +7 sh1 .* TLS +GLOBAL +DEFAULT +7 sg6 .* TLS +GLOBAL +DEFAULT +7 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +10 _edata +.* NOTYPE +GLOBAL +DEFAULT +10 _end .* TLS +GLOBAL +HIDDEN +7 sh2 .* TLS +GLOBAL +HIDDEN +7 sh6 .* TLS +GLOBAL +DEFAULT +8 bg2 diff --git a/ld/testsuite/ld-sparc/tlssunnopic32.rd b/ld/testsuite/ld-sparc/tlssunnopic32.rd index 5051a4b07f..86fba1d781 100644 --- a/ld/testsuite/ld-sparc/tlssunnopic32.rd +++ b/ld/testsuite/ld-sparc/tlssunnopic32.rd @@ -57,10 +57,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +8 * .* FUNC +GLOBAL +DEFAULT +5 fn3 .* TLS +GLOBAL +DEFAULT +UND sg1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start .* TLS +GLOBAL +DEFAULT +UND sg2 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +8 _edata +.* NOTYPE +GLOBAL +DEFAULT +8 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -89,7 +89,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* FUNC +GLOBAL +DEFAULT +5 fn3 .* TLS +GLOBAL +DEFAULT +UND sg1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start .* TLS +GLOBAL +DEFAULT +UND sg2 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +8 _edata +.* NOTYPE +GLOBAL +DEFAULT +8 _end diff --git a/ld/testsuite/ld-sparc/tlssunnopic64.rd b/ld/testsuite/ld-sparc/tlssunnopic64.rd index e3e22e018f..72555c10da 100644 --- a/ld/testsuite/ld-sparc/tlssunnopic64.rd +++ b/ld/testsuite/ld-sparc/tlssunnopic64.rd @@ -59,10 +59,10 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +8 * .* FUNC +GLOBAL +DEFAULT +5 fn3 .* TLS +GLOBAL +DEFAULT +UND sg1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start .* TLS +GLOBAL +DEFAULT +UND sg2 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +8 _edata +.* NOTYPE +GLOBAL +DEFAULT +8 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -91,7 +91,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* FUNC +GLOBAL +DEFAULT +5 fn3 .* TLS +GLOBAL +DEFAULT +UND sg1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start .* TLS +GLOBAL +DEFAULT +UND sg2 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +8 _edata +.* NOTYPE +GLOBAL +DEFAULT +8 _end diff --git a/ld/testsuite/ld-sparc/tlssunpic32.rd b/ld/testsuite/ld-sparc/tlssunpic32.rd index 8fa8099fe9..eab1abe408 100644 --- a/ld/testsuite/ld-sparc/tlssunpic32.rd +++ b/ld/testsuite/ld-sparc/tlssunpic32.rd @@ -72,12 +72,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* TLS +GLOBAL +DEFAULT +7 sg1 .* FUNC +GLOBAL +DEFAULT +6 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start .* TLS +GLOBAL +DEFAULT +7 sg2 .* TLS +GLOBAL +DEFAULT +7 sg6 .* TLS +GLOBAL +DEFAULT +7 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -129,9 +129,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* TLS +GLOBAL +DEFAULT +7 sg1 .* FUNC +GLOBAL +DEFAULT +6 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start .* TLS +GLOBAL +DEFAULT +7 sg2 .* TLS +GLOBAL +DEFAULT +7 sg6 .* TLS +GLOBAL +DEFAULT +7 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end diff --git a/ld/testsuite/ld-sparc/tlssunpic64.rd b/ld/testsuite/ld-sparc/tlssunpic64.rd index 535ef8487a..ca26b2df40 100644 --- a/ld/testsuite/ld-sparc/tlssunpic64.rd +++ b/ld/testsuite/ld-sparc/tlssunpic64.rd @@ -72,12 +72,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* TLS +GLOBAL +DEFAULT +7 sg1 .* FUNC +GLOBAL +DEFAULT +6 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start .* TLS +GLOBAL +DEFAULT +7 sg2 .* TLS +GLOBAL +DEFAULT +7 sg6 .* TLS +GLOBAL +DEFAULT +7 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -129,9 +129,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* TLS +GLOBAL +DEFAULT +7 sg1 .* FUNC +GLOBAL +DEFAULT +6 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start .* TLS +GLOBAL +DEFAULT +7 sg2 .* TLS +GLOBAL +DEFAULT +7 sg6 .* TLS +GLOBAL +DEFAULT +7 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +11 _edata +.* NOTYPE +GLOBAL +DEFAULT +11 _end diff --git a/ld/testsuite/ld-spu/icache1.d b/ld/testsuite/ld-spu/icache1.d index 01b42ba701..27dc99e41b 100644 --- a/ld/testsuite/ld-spu/icache1.d +++ b/ld/testsuite/ld-spu/icache1.d @@ -23,7 +23,7 @@ Disassembly of section \.text: Disassembly of section \.data: -.* <.data>: +.* <(\.data|_edata-0x10)>: .* 00 04 08 00 .* .* 00 04 0d 04 .* .* 00 04 0c 00 .* @@ -31,7 +31,7 @@ Disassembly of section \.data: Disassembly of section \.bss: -.* <__icache_tag_array>: +.* <(__icache_tag_array|__bss_start)>: \.\.\. .* <__icache_rewrite_to>: diff --git a/ld/testsuite/ld-spu/pic.d b/ld/testsuite/ld-spu/pic.d index 438d4e1e4a..6279d51688 100644 --- a/ld/testsuite/ld-spu/pic.d +++ b/ld/testsuite/ld-spu/pic.d @@ -55,7 +55,7 @@ Disassembly of section \.text: 58: SPU_ADDR18 glob 5c: 18 1f 84 06 a \$6,\$8,\$126 5c: SPU_ADD_PIC glob - 60: 42 00 90 09 ila \$9,120 <__bss_start> + 60: 42 00 90 09 ila \$9,120 .* 60: SPU_ADDR18 _end 64: 18 1f 84 89 a \$9,\$9,\$126 64: SPU_ADD_PIC _end diff --git a/ld/testsuite/ld-tic6x/dsbt-be.ld b/ld/testsuite/ld-tic6x/dsbt-be.ld index 2a7795caf9..40ba14cd75 100644 --- a/ld/testsuite/ld-tic6x/dsbt-be.ld +++ b/ld/testsuite/ld-tic6x/dsbt-be.ld @@ -56,7 +56,7 @@ SECTIONS .rela.plt : { *(.rela.plt) } .plt : { *(.plt) } .text : { *(.text*) } - PROVIDE_HIDDEN (__c6xabi_DSBT_BASE = .); + . = .; PROVIDE_HIDDEN (__c6xabi_DSBT_BASE = .); .got : { *(.dsbt) *(.got.plt) *(.igot.plt) *(.got) *(.igot) } .neardata : { *(.neardata .neardata.* .gnu.linkonce.s.*) } .rodata : { *(.rodata .rodata.*) } diff --git a/ld/testsuite/ld-tic6x/dsbt.ld b/ld/testsuite/ld-tic6x/dsbt.ld index ff162f34c7..fdde8ba574 100644 --- a/ld/testsuite/ld-tic6x/dsbt.ld +++ b/ld/testsuite/ld-tic6x/dsbt.ld @@ -56,7 +56,7 @@ SECTIONS .rela.plt : { *(.rela.plt) } .plt : { *(.plt) } .text : { *(.text*) } - PROVIDE_HIDDEN (__c6xabi_DSBT_BASE = .); + . = .; PROVIDE_HIDDEN (__c6xabi_DSBT_BASE = .); .got : { *(.dsbt) *(.got.plt) *(.igot.plt) *(.got) *(.igot) } .neardata : { *(.neardata .neardata.* .gnu.linkonce.s.*) } .rodata : { *(.rodata .rodata.*) } diff --git a/ld/testsuite/ld-tic6x/shlib-1.rd b/ld/testsuite/ld-tic6x/shlib-1.rd index a5ad39be70..d3bf087a1f 100644 --- a/ld/testsuite/ld-tic6x/shlib-1.rd +++ b/ld/testsuite/ld-tic6x/shlib-1.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 diff --git a/ld/testsuite/ld-tic6x/shlib-1b.rd b/ld/testsuite/ld-tic6x/shlib-1b.rd index a5ad39be70..d3bf087a1f 100644 --- a/ld/testsuite/ld-tic6x/shlib-1b.rd +++ b/ld/testsuite/ld-tic6x/shlib-1b.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 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 diff --git a/ld/testsuite/ld-tic6x/shlib-1rb.rd b/ld/testsuite/ld-tic6x/shlib-1rb.rd index a5ad39be70..d3bf087a1f 100644 --- a/ld/testsuite/ld-tic6x/shlib-1rb.rd +++ b/ld/testsuite/ld-tic6x/shlib-1rb.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 diff --git a/ld/testsuite/ld-tic6x/shlib-app-1.rd b/ld/testsuite/ld-tic6x/shlib-app-1.rd index bd317a8475..6461371c15 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1.rd @@ -90,7 +90,7 @@ Symbol table '\.dynsym' contains 12 entries: 3: 100000a0 0 SECTION LOCAL DEFAULT 11 4: 100000c0 0 SECTION LOCAL DEFAULT 12 5: 100000cc 0 SECTION LOCAL DEFAULT 13 - 6: 100000a0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 100000a0 0 NOTYPE LOCAL DEFAULT 11 __c6xabi_DSBT_BASE 7: 100000c0 4 OBJECT GLOBAL DEFAULT 12 b 8: 00000000 0 NOTYPE WEAK DEFAULT UND g1 9: 00000000 0 OBJECT WEAK DEFAULT UND g2 @@ -120,7 +120,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00000000 0 FILE LOCAL DEFAULT ABS .* .* 00008178 0 OBJECT LOCAL DEFAULT 7 _DYNAMIC .* 100000ac 0 OBJECT LOCAL DEFAULT 11 _GLOBAL_OFFSET_TABLE_ -.* 100000a0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 100000a0 0 NOTYPE LOCAL DEFAULT 11 __c6xabi_DSBT_BASE .* 100000c0 4 OBJECT GLOBAL DEFAULT 12 b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 NOTYPE WEAK DEFAULT UND g1 diff --git a/ld/testsuite/ld-tic6x/shlib-app-1b.rd b/ld/testsuite/ld-tic6x/shlib-app-1b.rd index 3366a6453c..f4e818847e 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1b.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1b.rd @@ -90,7 +90,7 @@ Symbol table '\.dynsym' contains 12 entries: 3: 100000a0 0 SECTION LOCAL DEFAULT 11 4: 100000c0 0 SECTION LOCAL DEFAULT 12 5: 100000cc 0 SECTION LOCAL DEFAULT 13 - 6: 100000a0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 100000a0 0 NOTYPE LOCAL DEFAULT 11 __c6xabi_DSBT_BASE 7: 100000c0 4 OBJECT GLOBAL DEFAULT 12 b 8: 00000000 0 NOTYPE WEAK DEFAULT UND g1 9: 00000000 0 OBJECT WEAK DEFAULT UND g2 @@ -120,7 +120,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00000000 0 FILE LOCAL DEFAULT ABS .* .* 00008178 0 OBJECT LOCAL DEFAULT 7 _DYNAMIC .* 100000ac 0 OBJECT LOCAL DEFAULT 11 _GLOBAL_OFFSET_TABLE_ -.* 100000a0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 100000a0 0 NOTYPE LOCAL DEFAULT 11 __c6xabi_DSBT_BASE .* 100000c0 4 OBJECT GLOBAL DEFAULT 12 b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 NOTYPE WEAK DEFAULT UND g1 diff --git a/ld/testsuite/ld-tic6x/shlib-app-1r.rd b/ld/testsuite/ld-tic6x/shlib-app-1r.rd index a37c4e15ab..b00447c2d2 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1r.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1r.rd @@ -84,7 +84,7 @@ Symbol table '\.dynsym' contains 10 entries: 3: 100000a0 0 SECTION LOCAL DEFAULT 10 4: 100000c0 0 SECTION LOCAL DEFAULT 11 5: 100000c4 0 SECTION LOCAL DEFAULT 12 - 6: 100000a0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 100000a0 0 NOTYPE LOCAL DEFAULT 10 __c6xabi_DSBT_BASE 7: 100000c0 4 OBJECT GLOBAL DEFAULT 11 b 8: 00000000 0 FUNC GLOBAL DEFAULT UND sub0 9: 100000c4 4 OBJECT GLOBAL DEFAULT 12 a @@ -110,7 +110,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00000000 0 FILE LOCAL DEFAULT ABS .* .* 00008130 0 OBJECT LOCAL DEFAULT 6 _DYNAMIC .* 100000ac 0 OBJECT LOCAL DEFAULT 10 _GLOBAL_OFFSET_TABLE_ -.* 100000a0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 100000a0 0 NOTYPE LOCAL DEFAULT 10 __c6xabi_DSBT_BASE .* 100000c0 4 OBJECT GLOBAL DEFAULT 11 b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 FUNC GLOBAL DEFAULT UND sub0 diff --git a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd index 4a726a54c6..7c2c1106b3 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd @@ -84,7 +84,7 @@ Symbol table '\.dynsym' contains 10 entries: 3: 100000a0 0 SECTION LOCAL DEFAULT 10 4: 100000c0 0 SECTION LOCAL DEFAULT 11 5: 100000c4 0 SECTION LOCAL DEFAULT 12 - 6: 100000a0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 100000a0 0 NOTYPE LOCAL DEFAULT 10 __c6xabi_DSBT_BASE 7: 100000c0 4 OBJECT GLOBAL DEFAULT 11 b 8: 00000000 0 FUNC GLOBAL DEFAULT UND sub0 9: 100000c4 4 OBJECT GLOBAL DEFAULT 12 a @@ -110,7 +110,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00000000 0 FILE LOCAL DEFAULT ABS .* .* 00008134 0 OBJECT LOCAL DEFAULT 6 _DYNAMIC .* 100000ac 0 OBJECT LOCAL DEFAULT 10 _GLOBAL_OFFSET_TABLE_ -.* 100000a0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 100000a0 0 NOTYPE LOCAL DEFAULT 10 __c6xabi_DSBT_BASE .* 100000c0 4 OBJECT GLOBAL DEFAULT 11 b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 FUNC GLOBAL DEFAULT UND sub0 diff --git a/ld/testsuite/ld-tic6x/shlib-noindex.rd b/ld/testsuite/ld-tic6x/shlib-noindex.rd index fc323b2262..3d50e68572 100644 --- a/ld/testsuite/ld-tic6x/shlib-noindex.rd +++ b/ld/testsuite/ld-tic6x/shlib-noindex.rd @@ -91,7 +91,7 @@ Symbol table '\.dynsym' contains 13 entries: 3: 10000100 0 SECTION LOCAL DEFAULT 11 4: 10000128 0 SECTION LOCAL DEFAULT 12 5: 10000130 0 SECTION LOCAL DEFAULT 13 - 6: 10000100 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 10000100 0 NOTYPE LOCAL DEFAULT 11 __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 12 g2 @@ -122,7 +122,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00000000 0 FILE LOCAL DEFAULT ABS .* .* 00008188 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 11 __c6xabi_DSBT_BASE .* 00000000 0 NOTYPE WEAK DEFAULT UND b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 NOTYPE WEAK DEFAULT UND g1 diff --git a/ld/testsuite/ld-tic6x/static-app-1.rd b/ld/testsuite/ld-tic6x/static-app-1.rd index ae2daa10b8..ae5bc8d671 100644 --- a/ld/testsuite/ld-tic6x/static-app-1.rd +++ b/ld/testsuite/ld-tic6x/static-app-1.rd @@ -77,7 +77,7 @@ Symbol table '\.dynsym' contains 10 entries: 3: 100000e0 0 SECTION LOCAL DEFAULT 9 4: 100000f4 0 SECTION LOCAL DEFAULT 10 5: 100000f4 4 OBJECT LOCAL DEFAULT 10 c - 6: 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 100000c0 0 NOTYPE LOCAL DEFAULT 8 __c6xabi_DSBT_BASE 7: 100000e8 4 OBJECT GLOBAL DEFAULT 9 b 8: 00000000 0 NOTYPE WEAK DEFAULT UND g1 9: 100000e0 4 OBJECT GLOBAL DEFAULT 9 a @@ -105,7 +105,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00008150 0 OBJECT LOCAL DEFAULT 6 _DYNAMIC .* 100000f4 4 OBJECT LOCAL DEFAULT 10 c .* 100000cc 0 OBJECT LOCAL DEFAULT 8 _GLOBAL_OFFSET_TABLE_ -.* 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 100000c0 0 NOTYPE LOCAL DEFAULT 8 __c6xabi_DSBT_BASE .* 100000e8 4 OBJECT GLOBAL DEFAULT 9 b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 NOTYPE WEAK DEFAULT UND g1 diff --git a/ld/testsuite/ld-tic6x/static-app-1b.rd b/ld/testsuite/ld-tic6x/static-app-1b.rd index ae2daa10b8..ae5bc8d671 100644 --- a/ld/testsuite/ld-tic6x/static-app-1b.rd +++ b/ld/testsuite/ld-tic6x/static-app-1b.rd @@ -77,7 +77,7 @@ Symbol table '\.dynsym' contains 10 entries: 3: 100000e0 0 SECTION LOCAL DEFAULT 9 4: 100000f4 0 SECTION LOCAL DEFAULT 10 5: 100000f4 4 OBJECT LOCAL DEFAULT 10 c - 6: 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 100000c0 0 NOTYPE LOCAL DEFAULT 8 __c6xabi_DSBT_BASE 7: 100000e8 4 OBJECT GLOBAL DEFAULT 9 b 8: 00000000 0 NOTYPE WEAK DEFAULT UND g1 9: 100000e0 4 OBJECT GLOBAL DEFAULT 9 a @@ -105,7 +105,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00008150 0 OBJECT LOCAL DEFAULT 6 _DYNAMIC .* 100000f4 4 OBJECT LOCAL DEFAULT 10 c .* 100000cc 0 OBJECT LOCAL DEFAULT 8 _GLOBAL_OFFSET_TABLE_ -.* 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 100000c0 0 NOTYPE LOCAL DEFAULT 8 __c6xabi_DSBT_BASE .* 100000e8 4 OBJECT GLOBAL DEFAULT 9 b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 NOTYPE WEAK DEFAULT UND g1 diff --git a/ld/testsuite/ld-tic6x/static-app-1r.rd b/ld/testsuite/ld-tic6x/static-app-1r.rd index 62c7b69be1..3bc91dd6c2 100644 --- a/ld/testsuite/ld-tic6x/static-app-1r.rd +++ b/ld/testsuite/ld-tic6x/static-app-1r.rd @@ -75,7 +75,7 @@ Symbol table '\.dynsym' contains 10 entries: 3: 100000e0 0 SECTION LOCAL DEFAULT 9 4: 100000ec 0 SECTION LOCAL DEFAULT 10 5: 100000ec 4 OBJECT LOCAL DEFAULT 10 c - 6: 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 100000c0 0 NOTYPE LOCAL DEFAULT 8 __c6xabi_DSBT_BASE 7: 100000e8 4 OBJECT GLOBAL DEFAULT 9 b 8: 00000000 0 NOTYPE WEAK DEFAULT UND g1 9: 100000e0 4 OBJECT GLOBAL DEFAULT 9 a @@ -102,7 +102,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00008138 0 OBJECT LOCAL DEFAULT 6 _DYNAMIC .* 100000ec 4 OBJECT LOCAL DEFAULT 10 c .* 100000cc 0 OBJECT LOCAL DEFAULT 8 _GLOBAL_OFFSET_TABLE_ -.* 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 100000c0 0 NOTYPE LOCAL DEFAULT 8 __c6xabi_DSBT_BASE .* 100000e8 4 OBJECT GLOBAL DEFAULT 9 b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 NOTYPE WEAK DEFAULT UND g1 diff --git a/ld/testsuite/ld-tic6x/static-app-1rb.rd b/ld/testsuite/ld-tic6x/static-app-1rb.rd index 62c7b69be1..3bc91dd6c2 100644 --- a/ld/testsuite/ld-tic6x/static-app-1rb.rd +++ b/ld/testsuite/ld-tic6x/static-app-1rb.rd @@ -75,7 +75,7 @@ Symbol table '\.dynsym' contains 10 entries: 3: 100000e0 0 SECTION LOCAL DEFAULT 9 4: 100000ec 0 SECTION LOCAL DEFAULT 10 5: 100000ec 4 OBJECT LOCAL DEFAULT 10 c - 6: 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE + 6: 100000c0 0 NOTYPE LOCAL DEFAULT 8 __c6xabi_DSBT_BASE 7: 100000e8 4 OBJECT GLOBAL DEFAULT 9 b 8: 00000000 0 NOTYPE WEAK DEFAULT UND g1 9: 100000e0 4 OBJECT GLOBAL DEFAULT 9 a @@ -102,7 +102,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* 00008138 0 OBJECT LOCAL DEFAULT 6 _DYNAMIC .* 100000ec 4 OBJECT LOCAL DEFAULT 10 c .* 100000cc 0 OBJECT LOCAL DEFAULT 8 _GLOBAL_OFFSET_TABLE_ -.* 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 100000c0 0 NOTYPE LOCAL DEFAULT 8 __c6xabi_DSBT_BASE .* 100000e8 4 OBJECT GLOBAL DEFAULT 9 b .* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize .* 00000000 0 NOTYPE WEAK DEFAULT UND g1 diff --git a/ld/testsuite/ld-x86-64/tlsbin.rd b/ld/testsuite/ld-x86-64/tlsbin.rd index a246a35b01..e3285a3e7e 100644 --- a/ld/testsuite/ld-x86-64/tlsbin.rd +++ b/ld/testsuite/ld-x86-64/tlsbin.rd @@ -71,11 +71,11 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +UND sG5 .* TLS +GLOBAL +DEFAULT +UND sG2 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +13 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* TLS +GLOBAL +DEFAULT +UND sG1 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +13 _edata +.* NOTYPE +GLOBAL +DEFAULT +13 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -133,7 +133,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +9 sh4 .* TLS +GLOBAL +DEFAULT +10 bg7 .* TLS +GLOBAL +HIDDEN +9 sh5 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +13 __bss_start .* TLS +GLOBAL +DEFAULT +UND sG6 .* FUNC +GLOBAL +DEFAULT +8 fn2 .* TLS +GLOBAL +DEFAULT +9 sg2 @@ -141,8 +141,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +HIDDEN +9 sh1 .* TLS +GLOBAL +DEFAULT +9 sg6 .* TLS +GLOBAL +DEFAULT +9 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +13 _edata +.* NOTYPE +GLOBAL +DEFAULT +13 _end .* TLS +GLOBAL +HIDDEN +9 sh2 .* TLS +GLOBAL +HIDDEN +9 sh6 .* TLS +GLOBAL +DEFAULT +10 bg2 diff --git a/ld/testsuite/ld-x86-64/tlsbindesc.rd b/ld/testsuite/ld-x86-64/tlsbindesc.rd index 633690eaba..475535c25a 100644 --- a/ld/testsuite/ld-x86-64/tlsbindesc.rd +++ b/ld/testsuite/ld-x86-64/tlsbindesc.rd @@ -64,11 +64,11 @@ Symbol table '\.dynsym' contains [0-9]+ entries: +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 - +[0-9]+: 0+[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: 0+[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - +[0-9]+: 0+[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: 0+[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: 0+[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _edata + +[0-9]+: 0+[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -124,7 +124,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0+4c +0 +TLS +GLOBAL +HIDDEN +7 sh4 +[0-9]+: 0+78 +0 +TLS +GLOBAL +DEFAULT +8 bg7 +[0-9]+: 0+50 +0 +TLS +GLOBAL +HIDDEN +7 sh5 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: 0+401000 +0 +FUNC +GLOBAL +DEFAULT +6 fn2 +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +7 sg2 @@ -132,8 +132,8 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0+40 +0 +TLS +GLOBAL +HIDDEN +7 sh1 +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +7 sg6 +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +7 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _end +[0-9]+: 0+44 +0 +TLS +GLOBAL +HIDDEN +7 sh2 +[0-9]+: 0+54 +0 +TLS +GLOBAL +HIDDEN +7 sh6 +[0-9]+: 0+64 +0 +TLS +GLOBAL +DEFAULT +8 bg2 diff --git a/ld/testsuite/ld-x86-64/tlsdesc.rd b/ld/testsuite/ld-x86-64/tlsdesc.rd index f9497de079..fd576a7cbe 100644 --- a/ld/testsuite/ld-x86-64/tlsdesc.rd +++ b/ld/testsuite/ld-x86-64/tlsdesc.rd @@ -97,12 +97,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +8 sg5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 +[0-9]+: 0+1000 +0 +FUNC +GLOBAL +DEFAULT +7 fn1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +8 sg2 +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +8 sg6 +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +8 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -154,9 +154,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +8 sg5 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 +[0-9]+: 0+1000 +0 +FUNC +GLOBAL +DEFAULT +7 fn1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +8 sg2 +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +8 sg6 +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +8 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end diff --git a/ld/testsuite/ld-x86-64/tlsgdesc.rd b/ld/testsuite/ld-x86-64/tlsgdesc.rd index 68f718e36a..2eb2ec0f6b 100644 --- a/ld/testsuite/ld-x86-64/tlsgdesc.rd +++ b/ld/testsuite/ld-x86-64/tlsgdesc.rd @@ -69,12 +69,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4 +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fc1 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -96,9 +96,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4 +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS __bss_start + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 __bss_start +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fc1 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS _end + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _edata + +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _end diff --git a/ld/testsuite/ld-x86-64/tlspic.rd b/ld/testsuite/ld-x86-64/tlspic.rd index f2cd8e8dbc..fb6a22953a 100644 --- a/ld/testsuite/ld-x86-64/tlspic.rd +++ b/ld/testsuite/ld-x86-64/tlspic.rd @@ -81,12 +81,12 @@ Symbol table '\.dynsym' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* TLS +GLOBAL +DEFAULT +8 sg1 .* FUNC +GLOBAL +DEFAULT +7 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* TLS +GLOBAL +DEFAULT +8 sg2 .* TLS +GLOBAL +DEFAULT +8 sg6 .* TLS +GLOBAL +DEFAULT +8 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +12 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end Symbol table '\.symtab' contains [0-9]+ entries: +Num: +Value +Size +Type +Bind +Vis +Ndx +Name @@ -138,9 +138,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr .* TLS +GLOBAL +DEFAULT +8 sg1 .* FUNC +GLOBAL +DEFAULT +7 fn1 -.* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start +.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start .* TLS +GLOBAL +DEFAULT +8 sg2 .* TLS +GLOBAL +DEFAULT +8 sg6 .* TLS +GLOBAL +DEFAULT +8 sg7 -.* NOTYPE +GLOBAL +DEFAULT +ABS _edata -.* NOTYPE +GLOBAL +DEFAULT +ABS _end +.* NOTYPE +GLOBAL +DEFAULT +12 _edata +.* NOTYPE +GLOBAL +DEFAULT +12 _end -- 2.34.1