This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HP/Compaq Tru64 linker semantics


Karl Vogel writes:

> I did something like:
> 
> +Index: gcc/config/alpha/osf.h
> +--- gcc/config/alpha/osf.h.orig 2003-12-12 02:19:23.000000000 +0100
> ++++ gcc/config/alpha/osf.h      2004-04-26 21:25:14.000000000 +0200
> +@@ -79,7 +79,7 @@
> +    constructor and call-frame data structures are not accidentally
> +    overridden.  */
> + #define LINK_SPEC  \
> +-  "-G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
> ++  "-oldstyle_liblookup %{!o:-o a.out} -G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
> +    %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \
> +    %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}"
> + 

That's not what I meant: as already stated, I don't think it's appropriate
for gcc to behave differently than the native cc with respect to library
lookup, even if this behavior is unusual compared to other unices.

My patch to allow passing -oldstyle_liblookup through collect2 to ld (but
only as -Wl,-oldstyle_liblookup) is here:

	http://gcc.gnu.org/ml/gcc-patches/2004-04/msg01920.html

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]