yury
392fc0b637
* android: Changed additions to the linker script to prevent misalignment of the .data section. It fixes crash when linking using recent versions of LD where the "relro" option is default. Issue #35641 .
...
* android: Always pass "-z relro" to the linker.
git-svn-id: trunk@44002 -
2020-01-19 20:31:54 +00:00
yury
48fcbb3f6c
* Create the ".note.gnu.build-id" section for android. It fixes debugging of shared libs in Android Studio.
...
git-svn-id: trunk@39987 -
2018-10-19 20:23:08 +00:00
yury
e367577bf1
+ added support for x86_64-android target.
...
git-svn-id: trunk@39956 -
2018-10-17 16:56:27 +00:00
yury
9d7308df42
* Android: Reworked the startup code to use no assembly instructions. Generic assembler startup files contains only section data and are compiled for each CPU.
...
* Android: argc and argv are correct for shared libraries.
git-svn-id: trunk@39905 -
2018-10-08 16:48:41 +00:00
yury
671d31df1d
+ Added support for the aarch64-android target.
...
git-svn-id: trunk@39862 -
2018-10-06 09:33:09 +00:00
Károly Balogh
e6aed467b5
renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin
...
git-svn-id: trunk@37598 -
2017-11-17 11:27:19 +00:00
yury
c29c5571b8
* android: Fixed AV during linking when JNI_OnLoad is located in a non-main unit.
...
git-svn-id: trunk@34553 -
2016-09-22 07:40:51 +00:00
yury
a0d6873331
* android: Android versions prior to 4.1 do not support recursive dlopen() calls.
...
Therefore if a shared library is loaded by JVM ( using dlopen() ),
it is not possible to use dlopen() in a units initialization code -
dlopen() simply hangs.
To workaround this issue, if a library exports JNI_OnLoad(), then
no unit initialization is performed during library load.
The initialization is called when JVM has loaded the library and calls
JNI_OnLoad().
git-svn-id: trunk@34406 -
2016-09-01 23:22:41 +00:00
yury
4026cfcf60
* android: Generate PIC executables. It is required for Android 5.0+.
...
git-svn-id: trunk@32023 -
2015-10-12 08:56:04 +00:00
yury
e0c8a4701e
* Fixed compilation for mips-linux.
...
git-svn-id: trunk@26732 -
2014-02-08 19:08:21 +00:00
yury
bb269e53ac
* mipsel-android: Don't export local symbols from executable.
...
git-svn-id: trunk@26690 -
2014-02-06 19:11:08 +00:00
yury
56b3287e29
+ Added compiler support for mipsel-android target.
...
git-svn-id: trunk@26686 -
2014-02-06 17:02:43 +00:00
sergei
38058505ba
* Changed linking infrastructure to look like assembler one:
...
* Changed direct references to linker classes in TSystemInfo records to enumerated ids.
* RegisterExtennalLinker and RegisterInternalLinker procedures replaced by single RegisterLinker procedure and moved to link.pas.
- TAbstractLinker is no longer necessary, removed.
This change allows to register linker once per id, rather than once per target, and also allows TSystemInfo records to be read-only.
git-svn-id: trunk@25279 -
2013-08-18 12:01:21 +00:00
yury
92b2ef2059
* Android: Quote a path to crt object files if needed. It fixes linking when a library path contains spaces.
...
git-svn-id: trunk@23607 -
2013-02-13 15:50:58 +00:00
yury
3e151ac30f
* Removed -z relro linker option, since it causes problems.
...
git-svn-id: branches/targetandroid@23474 -
2013-01-21 11:45:29 +00:00
yury
9b600b9688
* Pass some security switches to LD. They are passed by GCC.
...
* Removed unused function.
git-svn-id: branches/targetandroid@23451 -
2013-01-18 23:32:26 +00:00
yury
2dcb174f25
* Always specify dynamic linker name for executables.
...
git-svn-id: branches/targetandroid@23289 -
2013-01-02 00:53:36 +00:00
yury
9b5511adac
* libctype is not needed, since only bionic is supported anyway.
...
git-svn-id: branches/targetandroid@23285 -
2013-01-01 23:59:48 +00:00
yury
6ccb152647
* Rework of Android startup code. It is needed to always link to libc on android to implement finalization and environment variables in shared libraries.
...
* Cleanup of Android linker.
* Use only INSERT command in the linker script to inject custom .fpc sections. Whole linker script duplication is nor needed anymore.
* Use BFD linker, since GOLD linker does not support INSERT command. Other incompatibilities may also exist.
* Enable tf_smartlink_sections for i386-android.
* i386-android is broken after this commit. Will be fixed later.
git-svn-id: branches/targetandroid@23284 -
2013-01-01 23:49:12 +00:00
tom_at_work
fe87b547ea
Updated systems/t_android to only recognize the "bionic" libc as valid libc.
...
Fix uninitialized defdynlinker variable when compiling i386-android causing garbage in the linker script.
git-svn-id: branches/targetandroid@22044 -
2012-08-09 08:00:16 +00:00
tom_at_work
4150f0a2fb
Rebase with r21814
...
git-svn-id: branches/targetandroid@21815 -
2012-07-07 23:09:20 +00:00
tom_at_work
77a85b7448
* basic android/x86 support
...
git-svn-id: branches/targetandroid@21296 -
2012-05-14 21:14:12 +00:00
tom_at_work
c520f713f4
- commit missing new files
...
git-svn-id: branches/targetandroid@21062 -
2012-04-26 09:41:13 +00:00