From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Buck To: aoliva@redhat.com (Alexandre Oliva) Cc: rms@gnu.org, gcc@gcc.gnu.org Subject: Re: [ghudson@MIT.EDU: Re: -Xlinker and LDFLAGS] Date: Thu, 11 Jan 2001 09:36:00 -0000 Message-id: <200101111736.JAA19920@racerx.synopsys.com> References: X-SW-Source: 2001-01/msg00742.html > > On Jan 11, 2001, Richard Stallman wrote: > > > Would it be feasible to make gcc understand the linker -R argument for > > GNU/Linux? It looks like that would be useful. > > We've gone over this issue in one of the GCC mailing lists. > > GCC only accepts -R on Solaris to be compatible with Sun's C Compiler. > Supporting -R on GNU/Linux too might give people the impression that > -R is a portable switch in GCC, and then, they might start asking why > -R doesn't work on other platforms. The problem, though, is that GNU ld made a different decision: it accepts -R on GNU/Linux explicitly for compatibility with Solaris ld; since the ELF switch, almost every aspect of linking on GNU/Linux was copied from Solaris. What's the use of that decision if GCC dissents from it? Are we all on the same team or not? And maybe -R *should* work on any platform where the linker supports the -R switch.