All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] _end symbol in parisc linux?
@ 1999-11-02  0:39 Paul Bame
  1999-11-06 18:26 ` Philipp Rumpf
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Bame @ 1999-11-02  0:39 UTC (permalink / raw)
  To: parisc-linux


Anybody know how to get PA-Linux to have an _end symbol like
most other programs, including Intel Linux?

	-Paul Bame

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [parisc-linux] _end symbol in parisc linux?
@ 1999-11-02 19:13 Donald Scobbie
  0 siblings, 0 replies; 10+ messages in thread
From: Donald Scobbie @ 1999-11-02 19:13 UTC (permalink / raw)
  To: parisc-linux



> Anybody know how to get PA-Linux to have an _end symbol like
> most other programs, including Intel Linux?
>
>         -Paul Bame

Define the symbol as:

extern void *_end;

and the linker will sort it out for you. See the HP-UX man page for
'end'.
I think everyone is linking with the HP-UX ld, but it works for gcc ld
too.

Cheers

Donald

-------------------------------------------------------
Donald Scobbie
Hewlett Packard Ltd.        email:  dscobbie@sqf.hp.com
Telecom Systems Division    Phone:  +44 131 331 6149

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [parisc-linux] _end symbol in parisc linux?
@ 1999-11-08 19:18 Cary Coutant
  0 siblings, 0 replies; 10+ messages in thread
From: Cary Coutant @ 1999-11-08 19:18 UTC (permalink / raw)
  To: Jeff Law, Philipp Rumpf; +Cc: Paul Bame, parisc-linux

>  > > Anybody know how to get PA-Linux to have an _end symbol like
>  > > most other programs, including Intel Linux?
>  > 
>  > AFAIK we would need to have linker scripts to do so, which seems to be 
>impo
>  > ssible
>  > with the HP/UX ld.  So this is on the "things that will get nicer when 
>we h
>  > ave
>  > GNU binutils again" list.
>Actually, you can with SOM with clever use of the sort_key attribute within
>a subspace.  Create a new subspace with a larger than normal sort key.  
>Within
>that space create a single symbol "_end".

Donald Scobbie already answered the question:

>Define the symbol as:
>
>extern void *_end;
>
>and the linker will sort it out for you. See the HP-UX man page for
>'end'.

The HP-UX SOM linker will create the symbols _etext, _edata, and _end if 
they are referenced; it won't create them if they're not referenced.

-cary

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

end of thread, other threads:[~1999-11-11 17:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-02  0:39 [parisc-linux] _end symbol in parisc linux? Paul Bame
1999-11-06 18:26 ` Philipp Rumpf
1999-11-06 20:08   ` Jeffrey A Law
1999-11-11 15:36     ` Paul Bame
1999-11-11 15:51       ` Jeffrey A Law
1999-11-11 16:14         ` Paul Bame
1999-11-11 17:32           ` Jeffrey A Law
1999-11-11 16:46       ` John David Anglin
  -- strict thread matches above, loose matches on Subject: below --
1999-11-02 19:13 Donald Scobbie
1999-11-08 19:18 Cary Coutant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.