PATCH: makes --gc-sections compatible with -r/-q
Thu Jan 10 01:12:00 GMT 2008
On Jan 8, 2008, at 5:45 PM, H.J. Lu wrote:
> The current linker does
> [hjl@gnu-6 tmp]$ ld -r --gc-sections y.o
> ld: --gc-sections and -r may not be used together
> [hjl@gnu-6 tmp]$
> So are you proposing linker will now generate incorrect output
> siliently instead? I don't like it.
I understand your point.
Do you want --gc-sections -r requires a -e ?
As a consequence, ENTRY in linker script won't be allowed.
As I don't last the consequence, we may also remove the ENTRY command
in .xr scripts.
More information about the Binutils