diff options
author | Alan Modra <amodra@gmail.com> | 2018-09-19 13:22:43 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-09-19 15:08:48 +0930 |
commit | 7f0cfc6eb8bbead5c9a1ff3a8dec11d93304f5ad (patch) | |
tree | 2d682ff49058d53ffb215f9e8f4980ae514a2c40 /ld/ldgram.y | |
parent | aa654ee8f830ca0d4d31bad0ff18b9e6261267fd (diff) | |
download | gdb-7f0cfc6eb8bbead5c9a1ff3a8dec11d93304f5ad.zip gdb-7f0cfc6eb8bbead5c9a1ff3a8dec11d93304f5ad.tar.gz gdb-7f0cfc6eb8bbead5c9a1ff3a8dec11d93304f5ad.tar.bz2 |
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.y | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index cba0486..81ed85e 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; } ; |