From d139868dc40556b38567f17076bc44d8d057ae6a Mon Sep 17 00:00:00 2001 From: yury <jura@cp-lab.com> Date: Thu, 9 Mar 2017 20:17:35 +0000 Subject: [PATCH] * Use .rodata section for Android. git-svn-id: trunk@35553 - --- compiler/aggas.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/aggas.pas b/compiler/aggas.pas index 1a023d0ef9..25a394b1db 100644 --- a/compiler/aggas.pas +++ b/compiler/aggas.pas @@ -362,6 +362,10 @@ implementation (target_info.system in systems_all_windows+systems_nativent-[system_i8086_win16]) then secname:='.rodata'; + { Use .rodata for Android } + if (target_info.system in systems_android) and (atype in [sec_rodata,sec_rodata_norel]) then + secname:='.rodata'; + { section type user gives the user full controll on the section name } if atype=sec_user then secname:=aname;