From: Alan Modra Date: Thu, 21 Jun 2012 03:33:00 +0000 (+0000) Subject: ld/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9476c5a34043d72dd855cb03d124d4052b190ce;p=binutils-gdb.git ld/ * ldlang.c (lang_insert_orphan): Don't make __start_ symbol absolute, and remove unnecessary alignment. ld/testsuite/ * ld-gc/start.d: Update. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index e157d730891..f6e78f2feb8 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2012-06-21 Alan Modra + + * ldlang.c (lang_insert_orphan): Don't make __start_ symbol + absolute, and remove unnecessary alignment. + 2012-06-16 Alan Modra * ldlang.h (lang_output_section_statement_type): Add after_end field. diff --git a/ld/ldlang.c b/ld/ldlang.c index 2ecf62fc79c..ddf3be22eb2 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -1790,17 +1790,12 @@ lang_insert_orphan (asection *s, if (*ps == '\0') { char *symname; - etree_type *e_align; symname = (char *) xmalloc (ps - secname + sizeof "__start_" + 1); symname[0] = bfd_get_symbol_leading_char (link_info.output_bfd); sprintf (symname + (symname[0] != 0), "__start_%s", secname); - e_align = exp_unop (ALIGN_K, - exp_intop ((bfd_vma) 1 << s->alignment_power)); - lang_add_assignment (exp_assign (".", e_align)); lang_add_assignment (exp_provide (symname, - exp_unop (ABSOLUTE, - exp_nameop (NAME, ".")), + exp_nameop (NAME, "."), FALSE)); } } diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 4f463b5dc4e..57996a7ffed 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-06-21 Alan Modra + + * ld-gc/start.d: Update. + 2012-06-18 Hans-Peter Nilsson * ld-cris/dso-pltdis1.d, ld-cris/dso-pltdis2.d, dsofng.s diff --git a/ld/testsuite/ld-gc/start.d b/ld/testsuite/ld-gc/start.d index a655bea3b58..d7e47b2d59c 100644 --- a/ld/testsuite/ld-gc/start.d +++ b/ld/testsuite/ld-gc/start.d @@ -5,5 +5,5 @@ #notarget: *-*-*aout *-*-*oldld frv-*-linux* #... -[0-9a-f]+ A +__start__foo +[0-9a-f]+ D +__start__foo #...