* Create the ".note.gnu.build-id" section for android. It fixes debugging of shared libs in Android Studio.

git-svn-id: trunk@39987 -
This commit is contained in:
yury 2018-10-19 20:23:08 +00:00
parent 92acd38f40
commit 48fcbb3f6c

View File

@ -168,7 +168,7 @@ begin
with Info do
begin
{ Specify correct max-page-size and common-page-size to prevent big gaps between sections in resulting executable }
s:='ld -z max-page-size=0x1000 -z common-page-size=0x1000 -z noexecstack -z now $OPT -L. -T $RES -o $EXE';
s:='ld -z max-page-size=0x1000 -z common-page-size=0x1000 -z noexecstack -z now --build-id $OPT -L. -T $RES -o $EXE';
ExeCmd[1]:=s + ' --entry=_start';
DllCmd[1]:=s + ' -shared -soname $SONAME';
DllCmd[2]:='strip --strip-unneeded $EXE';