__curbrk (and &_end)

Roland McGrath roland@redhat.com
Wed Feb 18 02:21:00 GMT 2004


If you want libc.so to refer to the program's _end, you need to make sure
the version script for building libc.so exports _end such that its
references will be resolved by the dynamic linker and matched up with the
program's definitions.  However, I think relying on _end is probably not
the way to go.  You can instead look at the PT_LOAD headers to find the end
of the data segment.



More information about the Libc-alpha mailing list