This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: max-page-size syntax
Hi Ian,
I tested this on command line and it is indeed working, so the linker is ok
and supports the option.
For the records, my issue was - again - about how the devel. tools (Keil
uVision4) were passing the options.
I had to put such switches within the "linker" tab of the project settings,
but using the syntax the compiler would use to pass them to the linker (so
with the -Wl,... for example)
I noticed this by looking at the generated .lnp file, which includes the
command line which is internally passed by the IDE to the linker.
Thanks again, have a nice X-mas
Best regards,
Giancarlo
Ian Lance Taylor-3 wrote:
>
> 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
>
>
--
View this message in context: http://old.nabble.com/max-page-size-syntax-tp30481264p30497175.html
Sent from the gcc - Help mailing list archive at Nabble.com.