max-page-size syntax
Ian Lance Taylor
iant@google.com
Fri Dec 17 15:26:00 GMT 2010
CortexFan <giancarlo.parodi@gmail.com> writes:
> what is the correct syntax for the max-page-size keyword?
>
> Is it just -z max-page-size=0x100 or does it need single or double quotes,
> etc?
>
> I tried pretty much all combinations but the linker (Sourcery G++ Lite
> 2010q1-188) still does not recognize the option
Are you running the linker directly, or are you using the compiler to
link? When using the compiler to link, you should use
gcc .... -Wl,-z,max-page-size=0x100
Also make sure that
ld --help | grep max-page-size
prints something. It's possible that you have an old linker.
Ian
More information about the Gcc-help
mailing list