public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* always use collect2
@ 1998-02-20 21:22 Arvind Sankar
  1998-02-20 22:58 ` Jeffrey A Law
  1998-02-21 12:35 ` always use collect2 Alexandre Oliva
  0 siblings, 2 replies; 14+ messages in thread
From: Arvind Sankar @ 1998-02-20 21:22 UTC (permalink / raw)
  To: egcs

I have a SPARC machine running UNIX SVR4.

Why is USE_COLLECT2 always defined? Doesnt egcs work with the binutils
2.8.1 linker?
If I have to use collect2, how do I tell it to call the binutils linker
rather than the default one on my system, which it seems to find in
/usr/ccs/bin? The binutils ld is earlier in my PATH when collect2 was
built. collect2 calling /usr/ccs/bin/ld causes problems because I want
to pass certain options to binutils-ld which /usr/ccs/bin/ld does not
support.

Mon Aug 11 14:15:02 1997  Jeffrey A Law  (law@cygnus.com)

        * Makefile.in (USE_COLLECT2): Always use collect2.
        (collect2): Depend on and link in hash.o and tlink.o.
        (tlink.o, hash.o): Add dependencies.

-- arvind


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: always use collect2
  1998-02-20 21:22 always use collect2 Arvind Sankar
@ 1998-02-20 22:58 ` Jeffrey A Law
  1998-02-21  7:58   ` gcc m68k: pc-relative addressing for code? Michael Schwingen
  1998-02-21 12:35 ` always use collect2 Alexandre Oliva
  1 sibling, 1 reply; 14+ messages in thread
From: Jeffrey A Law @ 1998-02-20 22:58 UTC (permalink / raw)
  To: Arvind Sankar; +Cc: egcs

  In message < 19980221105411.A26167@kailash.cse.iitb.ernet.in >you write:
  > I have a SPARC machine running UNIX SVR4.
  > 
  > Why is USE_COLLECT2 always defined? Doesnt egcs work with the binutils
  > 2.8.1 linker?
It still works with the 2.8.1 linker, but collect2 is still needed
to deal with certain shared library issues.

jeff

^ permalink raw reply	[flat|nested] 14+ messages in thread

* gcc m68k: pc-relative addressing for code?
  1998-02-20 22:58 ` Jeffrey A Law
@ 1998-02-21  7:58   ` Michael Schwingen
  1998-02-21 21:04     ` Jeffrey A Law
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Schwingen @ 1998-02-21  7:58 UTC (permalink / raw)
  To: egcs

Hi,

is it possible to have gcc create output which only uses PC-relative
addressing for code references? 

I need this for ROM code which is moved around during PMMU initialization -
however, variables are in a constant place in RAM and shall *not* be
referenced PC-relative, so -fpic or -fPIC seems not to be usable in this
case, and the addressing via GOT seems to be a bit inefficient, too - the
PC-relative addressing mode would be better (32k code limit is not a
problem).

(a nice thing to have would be if all variables could be referenced relative
to an address register, which is *not* reloaded by gcc - however, I can live
without).

cu
Michael
-- 
In the beginning there was nothing, which exploded.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: always use collect2
  1998-02-20 21:22 always use collect2 Arvind Sankar
  1998-02-20 22:58 ` Jeffrey A Law
@ 1998-02-21 12:35 ` Alexandre Oliva
  1998-02-22  3:16   ` Andi Kleen
  1 sibling, 1 reply; 14+ messages in thread
From: Alexandre Oliva @ 1998-02-21 12:35 UTC (permalink / raw)
  To: Arvind Sankar; +Cc: egcs

Arvind Sankar writes:

> Why is USE_COLLECT2 always defined?

Because it is needed in order to implement the C++ template repository
mechanism (-frepo)

> Doesnt egcs work with the binutils 2.8.1 linker?

It does, but it's not enough.

> If I have to use collect2, how do I tell it to call the binutils linker
> rather than the default one on my system, which it seems to find in
> /usr/ccs/bin?

Create a link named `real-ld' to the ld program you wish to use in the
same directory where `cc1' lives.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: gcc m68k: pc-relative addressing for code?
  1998-02-21  7:58   ` gcc m68k: pc-relative addressing for code? Michael Schwingen
@ 1998-02-21 21:04     ` Jeffrey A Law
  1998-02-21 22:52       ` Philippe De Muyter
  0 siblings, 1 reply; 14+ messages in thread
From: Jeffrey A Law @ 1998-02-21 21:04 UTC (permalink / raw)
  To: Michael Schwingen; +Cc: egcs

  In message < 19980221120121.42072@nemesis >you write:
  > is it possible to have gcc create output which only uses PC-relative
  > addressing for code references? 
Unfortunately I do not believe such an option exists on the m68k.

jeff

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: gcc m68k: pc-relative addressing for code?
  1998-02-21 21:04     ` Jeffrey A Law
@ 1998-02-21 22:52       ` Philippe De Muyter
  1998-02-22 13:03         ` Jeffrey A Law
  0 siblings, 1 reply; 14+ messages in thread
From: Philippe De Muyter @ 1998-02-21 22:52 UTC (permalink / raw)
  To: law; +Cc: michaels, egcs

> 
>   In message < 19980221120121.42072@nemesis >you write:
>   > is it possible to have gcc create output which only uses PC-relative
>   > addressing for code references? 
> Unfortunately I do not believe such an option exists on the m68k.

Do you mean `m68k', or `m68k port of gcc' ? Does that imply that it exists
for other gcc targets ?

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: always use collect2
  1998-02-21 12:35 ` always use collect2 Alexandre Oliva
@ 1998-02-22  3:16   ` Andi Kleen
  1998-02-22 11:16     ` Jeffrey A Law
  0 siblings, 1 reply; 14+ messages in thread
From: Andi Kleen @ 1998-02-22  3:16 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: Arvind Sankar, egcs

Alexandre Oliva <oliva@dcc.unicamp.br> writes:

> Arvind Sankar writes:
> 
> > Why is USE_COLLECT2 always defined?
> 
> Because it is needed in order to implement the C++ template repository
> mechanism (-frepo)

Does this mean that collect is not needed when ELF and recent GNU binutils
(to sort out duplicate template instantiations) are used?
It runs per default on my Linux ELF/binuntils 2.8.x too.

-Andi

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: always use collect2
  1998-02-22  3:16   ` Andi Kleen
@ 1998-02-22 11:16     ` Jeffrey A Law
  1998-02-22 12:45       ` Richard Henderson
  0 siblings, 1 reply; 14+ messages in thread
From: Jeffrey A Law @ 1998-02-22 11:16 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Alexandre Oliva, Arvind Sankar, egcs

  In message < k2pvkfubzg.fsf@zero.aec.at >you write:
  > Does this mean that collect is not needed when ELF and recent GNU binutils
  > (to sort out duplicate template instantiations) are used?
  > It runs per default on my Linux ELF/binuntils 2.8.x too.
collect2 is always needed, regardless of the object file format.

It's necessary to deal with some shared library and EH issues.

jeff

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: always use collect2
  1998-02-22 11:16     ` Jeffrey A Law
@ 1998-02-22 12:45       ` Richard Henderson
  1998-02-22 12:55         ` Jeffrey A Law
                           ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Richard Henderson @ 1998-02-22 12:45 UTC (permalink / raw)
  To: law; +Cc: Andi Kleen, Alexandre Oliva, Arvind Sankar, egcs

On Sun, Feb 22, 1998 at 12:07:21PM -0700, Jeffrey A Law wrote:
> It's necessary to deal with some shared library and EH issues.

No, I'm pretty sure it's just repo for gnu ld on elf.
But since it isn't doing anything it also shouldn't get
in the way, so it should be left in the loop.


r~

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: always use collect2
  1998-02-22 12:45       ` Richard Henderson
@ 1998-02-22 12:55         ` Jeffrey A Law
  1998-02-22 16:39         ` ak
       [not found]         ` <9692.888181043.cygnus.egcs@hurl.cygnus.com>
  2 siblings, 0 replies; 14+ messages in thread
From: Jeffrey A Law @ 1998-02-22 12:55 UTC (permalink / raw)
  To: Richard Henderson; +Cc: Andi Kleen, Alexandre Oliva, Arvind Sankar, egcs

  In message < 19980222124721.49413@dot.cygnus.com >you write:
  > On Sun, Feb 22, 1998 at 12:07:21PM -0700, Jeffrey A Law wrote:
  > > It's necessary to deal with some shared library and EH issues.
  > 
  > No, I'm pretty sure it's just repo for gnu ld on elf.
  > But since it isn't doing anything it also shouldn't get
  > in the way, so it should be left in the loop.
Talk to Jason -- he explained the shlib and EH dependencies
to me a while ago (I've forgotten the details).

jeff

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: gcc m68k: pc-relative addressing for code?
  1998-02-21 22:52       ` Philippe De Muyter
@ 1998-02-22 13:03         ` Jeffrey A Law
  0 siblings, 0 replies; 14+ messages in thread
From: Jeffrey A Law @ 1998-02-22 13:03 UTC (permalink / raw)
  To: Philippe De Muyter; +Cc: michaels, egcs

  In message < 199802220651.HAA10158@mail.macqel.be >you write:
  > > 
  > >   In message < 19980221120121.42072@nemesis >you write:
  > >   > is it possible to have gcc create output which only uses PC-relative
  > >   > addressing for code references? 
  > > Unfortunately I do not believe such an option exists on the m68k.
  > 
  > Do you mean `m68k', or `m68k port of gcc' ? Does that imply that it exists
  > for other gcc targets ?
Some ports use pc-relative addressing modes to access items in the
constant pool or readonly data.

Such features require machine dependent work, which I don't think
was ever submitted for teh m68k.
jeff

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: always use collect2
  1998-02-22 12:45       ` Richard Henderson
  1998-02-22 12:55         ` Jeffrey A Law
@ 1998-02-22 16:39         ` ak
       [not found]         ` <9692.888181043.cygnus.egcs@hurl.cygnus.com>
  2 siblings, 0 replies; 14+ messages in thread
From: ak @ 1998-02-22 16:39 UTC (permalink / raw)
  To: Richard Henderson; +Cc: law, Andi Kleen, Alexandre Oliva, Arvind Sankar, egcs

On Sun, Feb 22, 1998 at 09:47:21PM +0100, Richard Henderson wrote:
> On Sun, Feb 22, 1998 at 12:07:21PM -0700, Jeffrey A Law wrote:
> > It's necessary to deal with some shared library and EH issues.
> 
> No, I'm pretty sure it's just repo for gnu ld on elf.
> But since it isn't doing anything it also shouldn't get
> in the way, so it should be left in the loop.

I remember seeing it in top, so it must be doing something.

-Andi

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: always use collect2
       [not found]         ` <9692.888181043.cygnus.egcs@hurl.cygnus.com>
@ 1998-02-22 20:04           ` Jason Merrill
  1998-02-22 20:06             ` Jeffrey A Law
  0 siblings, 1 reply; 14+ messages in thread
From: Jason Merrill @ 1998-02-22 20:04 UTC (permalink / raw)
  To: law, egcs

>>>>> Jeffrey A Law <law@cygnus.com> writes:

>   In message < 19980222124721.49413@dot.cygnus.com >you write:
>> On Sun, Feb 22, 1998 at 12:07:21PM -0700, Jeffrey A Law wrote:
>> > It's necessary to deal with some shared library and EH issues.
>> 
>> No, I'm pretty sure it's just repo for gnu ld on elf.
>> But since it isn't doing anything it also shouldn't get
>> in the way, so it should be left in the loop.

> Talk to Jason -- he explained the shlib and EH dependencies
> to me a while ago (I've forgotten the details).

No, Richard is right.  On ELF targets, it's just for repo and demangling
the linker error messages.

Jason

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: always use collect2
  1998-02-22 20:04           ` Jason Merrill
@ 1998-02-22 20:06             ` Jeffrey A Law
  0 siblings, 0 replies; 14+ messages in thread
From: Jeffrey A Law @ 1998-02-22 20:06 UTC (permalink / raw)
  To: Jason Merrill; +Cc: egcs

  In message < u9k9anhsq7.fsf@yorick.cygnus.com >you write:
  > >>>>> Jeffrey A Law <law@cygnus.com> writes:
  > 
  > >   In message < 19980222124721.49413@dot.cygnus.com >you write:
  > >> On Sun, Feb 22, 1998 at 12:07:21PM -0700, Jeffrey A Law wrote:
  > >> > It's necessary to deal with some shared library and EH issues.
  > >> 
  > >> No, I'm pretty sure it's just repo for gnu ld on elf.
  > >> But since it isn't doing anything it also shouldn't get
  > >> in the way, so it should be left in the loop.
  > 
  > > Talk to Jason -- he explained the shlib and EH dependencies
  > > to me a while ago (I've forgotten the details).
  > 
  > No, Richard is right.  On ELF targets, it's just for repo and demangling
  > the linker error messages.
I'm obviously confused then :-)  

Thanks for clearing things up.

jeff

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~1998-02-22 20:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-20 21:22 always use collect2 Arvind Sankar
1998-02-20 22:58 ` Jeffrey A Law
1998-02-21  7:58   ` gcc m68k: pc-relative addressing for code? Michael Schwingen
1998-02-21 21:04     ` Jeffrey A Law
1998-02-21 22:52       ` Philippe De Muyter
1998-02-22 13:03         ` Jeffrey A Law
1998-02-21 12:35 ` always use collect2 Alexandre Oliva
1998-02-22  3:16   ` Andi Kleen
1998-02-22 11:16     ` Jeffrey A Law
1998-02-22 12:45       ` Richard Henderson
1998-02-22 12:55         ` Jeffrey A Law
1998-02-22 16:39         ` ak
     [not found]         ` <9692.888181043.cygnus.egcs@hurl.cygnus.com>
1998-02-22 20:04           ` Jason Merrill
1998-02-22 20:06             ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).