diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-07-21 19:48:00 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-07-21 19:48:00 +0000 |
commit | 92e93fb4ba476b3501d4455855687a6d0272e986 (patch) | |
tree | a1fa2a8419672746fef6189df118a9e4e5ac8b07 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | |
parent | 629e0aa5be18b1199c4a1392a129eb4081e6f3d8 (diff) | |
download | llvm-92e93fb4ba476b3501d4455855687a6d0272e986.zip llvm-92e93fb4ba476b3501d4455855687a6d0272e986.tar.gz llvm-92e93fb4ba476b3501d4455855687a6d0272e986.tar.bz2 |
[ELF] - Basic support of linkerscript commands: DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, CONSTANT
It is called basic because:
CONSTANT expression can refer to COMMONPAGESIZE and MAXPAGESIZE.
This sizes are usually different and used for possible optimization of
memory consumption.
More details are here: https://sourceware.org/ml/binutils/2002-02/msg00265.html
We currently do not support this optimization, so both CONSTANT(MAXPAGESIZE)
and CONSTANT(COMMONPAGESIZE) just return Target->PageSize value.
DATA_SEGMENT_ALIGN and DATA_SEGMENT_END are used as a part of opt.
The latter one is just ignored now.
According to documentation DATA_SEGMENT_ALIGN has 2 possible
calculation, but since we do not support mentioned opt - it
is always calculated now as (ALIGN(MAXPAGESIZE) + (. & (MAXPAGESIZE - 1))).
In general this should work for now until we deside to support this opt.
Differential revision: https://reviews.llvm.org/D19663
llvm-svn: 276323
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp')
0 files changed, 0 insertions, 0 deletions