Don't link the kernel as a shared lib on ARM

We have the same problem as on x86_64: posiiton dependant code isn't
allowed in shared libraries. Since Kernel.so is not used at runtime,
we can use the same hack as on x86_64, and use elfedit to make the
linker think our kernel is a shared library.
This commit is contained in:
Adrien Destugues 2014-02-23 16:23:45 +01:00
parent 81e7f1e992
commit faa2d8a95b
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ KernelLd kernel_$(TARGET_ARCH) :
:
;
if $(HAIKU_ARCH) = x86_64 {
if $(HAIKU_ARCH) in x86_64 arm {
# Cannot relink everything as a shared object on x86_64 as shared library
# code is required to be position-independent. Instead create a copy of the
# executable kernel image and change the ELF header type to DYN. A bit of