commit | 7f0cfc6eb8bbead5c9a1ff3a8dec11d93304f5ad | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Wed Sep 19 13:22:43 2018 +0930 |
committer | Alan Modra <amodra@gmail.com> | Wed Sep 19 15:08:48 2018 +0930 |
tree | 2d682ff49058d53ffb215f9e8f4980ae514a2c40 | |
parent | aa654ee8f830ca0d4d31bad0ff18b9e6261267fd [diff] |
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.