If script references empty sections in LOADADDR/ADDR commands:
.empty : { *(.empty ) } .text : AT(LOADADDR (.empty) + SIZEOF (.empty)) { *(.text) }
then an empty section will be removed and LOADADDR/ADDR will evaluate to null.
It is not that user may expect from using of the generic script, what is a common case.
This is an alternative version of D54621, in this patch, I just report an error in this case,
so that we do not emit broken output silently.
The FileCheck part of the command looks to have been corrupted somehow. I'm seeing ileCheck %s ff.