Gfortran and load flags
Vardhan, Sundara (GE Infra, Energy)
sundara.vardhan@ge.com
Thu Oct 16 13:28:00 GMT 2008
Hi Brian
Thanks much. My mistake. I apologize. I used Wl for others, do not know
how I muffed this up.
With Regards
Vardhan
-----Original Message-----
From: Brian Dessent [mailto:brian@dessent.net]
Sent: Thursday, October 16, 2008 9:07 AM
To: Vardhan, Sundara (GE Infra, Energy)
Cc: gcc-help@gcc.gnu.org
Subject: Re: Gfortran and load flags
"Vardhan, Sundara (GE Infra, Energy)" wrote:
> I am using gfortran to compile and AIX ld for linker/loader. For this
> application, I need to use the bmaxdata loader option for which I used
> -W1,-bmaxdata:0x40000000 and passed it to gfortran. After compile and
> link, when I run the dump command to examine the binary, maxdata is
> not set to 0x40000000 but to 0. Any idea if what I am doing is wrong?
> Is it not that we need use -W1,option for passing any thing to the
loader?
> Does it not apply to gfortran? As always I would appreciate your input
> and advice.
The flag to pass linker options is -Wl (lower case L) not -W1.
Brian
More information about the Gcc-help
mailing list