Skip to contentSkip to conversation

_end symbol in parisc linux?

parisc-linux Cary Coutant 1 participant 1 message Nov 8, 1999

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

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

Quoted 2 lines

ssible
with the HP/UX ld. So this is on the "things that will get nicer when

Quoted 7 lines

we h

Quoted 2 lines

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:

Quoted 6 lines

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