[lld] r262019 - Description of symbols is avalable here:

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 29 08:30:09 PST 2016


>The Linux manual page of "end" says about the symbols as follows.

>
>  etext  This is the first address past the end of the text segment (the program code).
>  edata  This is the first address past the end of the initialized data segment.
>
>Is your implementation correct? Your implementation seems like this.
>
>  etext is the last address past the end of any writable segment
>  edata is the last address past the end of any initialized data segment

It is also said that "although these symbols have long been provided on most UNIX systems, they are not standardized; use with caution?".
Oracle description is a bit different:

https://docs.oracle.com/cd/E53394_01/html/E54766/u-etext-3c.html

_etext

The address of _etext is the first location after the last read-only loadable segment.

_edata

The address of _edata is the first location after the last read-write loadable segment.


I think my implementation is:
etext is the last address past the end of last non writable segment
edata is the last address past the end of last? initialized data segment

I believe my implementation equals to gold output now.

George.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160229/932a0b3c/attachment.html>


More information about the llvm-commits mailing list