aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-06-21 03:33:00 +0000
committerAlan Modra <amodra@gmail.com>2012-06-21 03:33:00 +0000
commitd9476c5a34043d72dd855cb03d124d4052b190ce (patch)
tree6d07c8ef2290e8a72ea07d48d779c329a2ad6c7c /ld/ldlang.c
parent19e676eb2ce0a2aee2ed591f11f588127c74cab1 (diff)
downloadgdb-d9476c5a34043d72dd855cb03d124d4052b190ce.zip
gdb-d9476c5a34043d72dd855cb03d124d4052b190ce.tar.gz
gdb-d9476c5a34043d72dd855cb03d124d4052b190ce.tar.bz2
ld/
* ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol absolute, and remove unnecessary alignment. ld/testsuite/ * ld-gc/start.d: Update.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 2ecf62f..ddf3be2 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));
}
}