Stephen J. Turnbull wrote:
>>>>>"Kaoru" == Kaoru Fukui
<k_fukui(a)highway.ne.jp> writes:
>>>>>
Kaoru> Gcc doesn't have -z option which is linker option as ld.
Only on PPC. On other platforms (at least all other Linux available
to the Debian XEmacs maintainer and Solaris) where ld supports -z, gcc
does pass it through to ld, although this is not documented.
Eg, a random test program I have lying around on Debian Linux x86:
bash-2.05a$ gcc --help | fgrep -e -z # no documentation
bash-2.05a$ gcc -z nocombreloc -o test-z test.c # but it works
bash-2.05a$ ./test-z
uc << 14 = 4177920.
bash-2.05a$
Unfortunately, it's possible that even if gcc is available to use as
the linker, the linker may get called directly. So using -Wl, or
-Xlinker is risky too. :-(
I've been seeing stuff lately about brokenness in binutils (ld) that
relate to nocombreloc. The only thing a search managed to locate was
this from redhat:
<
http://sources.redhat.com/ml/libc-alpha/2001-12/msg00015.html>
HTH
--
David A. Cobb, Software Engineer, Public Access Advocate
"By God's Grace I am a Christian man, by my actions a great sinner." -- The
Way of a Pilgrim; R. M. French, tr.
Life is too short to tolerate crappy software.
.