summaryrefslogtreecommitdiff
path: root/ld/ldgram.y
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-09-19 13:22:43 +0930
committerAlan Modra <amodra@gmail.com>2018-09-19 15:08:48 +0930
commit7f0cfc6eb8bbead5c9a1ff3a8dec11d93304f5ad (patch)
tree2d682ff49058d53ffb215f9e8f4980ae514a2c40 /ld/ldgram.y
parentaa654ee8f830ca0d4d31bad0ff18b9e6261267fd (diff)
downloadbinutils-gdb-7f0cfc6eb8bbead5c9a1ff3a8dec11d93304f5ad.tar.gz
PR23648, Symbols based on MEMORY regions confuse --gc-sections
Running lang_do_memory_regions earlier seems a reasonable solution to gaining better values for symbols prior to lang_gc_sections. PR ld/23648 * ldlang.c (lang_process): Move lang_do_memory_regions earlier. Comment on lang_do_assignments call. * ldgram.y (origin_exp): Don't assign region->current.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r--ld/ldgram.y1
1 files changed, 0 insertions, 1 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index cba0486259d..81ed85e9a02 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -819,7 +819,6 @@ origin_spec:
ORIGIN '=' mustbe_exp
{
region->origin_exp = $3;
- region->current = region->origin;
}
;