Re: ld: Neither "FILL(x);" nor "{ }>Memory = x" allow symbols

2020-01-27 Thread Alan Modra
On Fri, Jan 24, 2020 at 03:34:45PM +1100, john.adri...@bigpond.com wrote: [on trying to use a symbol in a fill expression] > arm-none-eabi/bin/ld.exe: bfd_link_hash_lookup failed: no error (It's the > "no error" part that I like the most!) Yes, that is silly. I'm going to commit the following

ld: Neither "FILL(x);" nor "{ }>Memory = x" allow symbols

2020-01-24 Thread John.Adriaan
REF: GNU ld (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 2.32.0.20190703 HOST: Microsoft Windows [Version 10.0.18362.535] Given the following definitions in a linker script: _Page = DEFINED(_Spansion) ? 0x200 : 0x0100; /* Spansion has larger pages */ _Type =