ld/
authorAlan Modra <amodra@gmail.com>
Thu, 21 Jun 2012 03:33:00 +0000 (03:33 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 21 Jun 2012 03:33:00 +0000 (03:33 +0000)
* ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
absolute, and remove unnecessary alignment.
ld/testsuite/
* ld-gc/start.d: Update.

ld/ChangeLog
ld/ldlang.c
ld/testsuite/ChangeLog
ld/testsuite/ld-gc/start.d

index e157d73089169f41ee8cade7affc10506643ab6b..f6e78f2feb88a5564e0c3053857a0b3d90348bda 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-21  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
+       absolute, and remove unnecessary alignment.
+
 2012-06-16  Alan Modra  <amodra@gmail.com>
 
        * ldlang.h (lang_output_section_statement_type): Add after_end field.
index 2ecf62fc79c1df2788862e3f3c1c3658af9d53ca..ddf3be22eb2ac837f59312b6f2724942caadc323 100644 (file)
@@ -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));
        }
     }
index 4f463b5dc4ee35c05226307e56838afc45f462a6..57996a7ffed3a141b3085db134fc992aa143f402 100644 (file)
@@ -1,3 +1,7 @@
+2012-06-21  Alan Modra  <amodra@gmail.com>
+
+       * ld-gc/start.d: Update.
+
 2012-06-18  Hans-Peter Nilsson  <hp@axis.com>
 
        * ld-cris/dso-pltdis1.d, ld-cris/dso-pltdis2.d, dsofng.s
index a655bea3b58a379c168c45dc17528c5586d443ef..d7e47b2d59c1ebee4e0169b9f8cbf23fc074ba26 100644 (file)
@@ -5,5 +5,5 @@
 #notarget: *-*-*aout *-*-*oldld frv-*-linux*
 
 #...
-[0-9a-f]+ A +__start__foo
+[0-9a-f]+ D +__start__foo
 #...