This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __curbrk (and &_end)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]