zephyr/arch
Andy Ross 9f068737d5 arch/x86_64: Suppress spurious linker-generated code in the 32 bit stub
Within the past few days, an update to the Ubuntu 18.04 toolchain has
begun emitting code sections during link that are messing with our
stub generation.  They are appearing in the 32 bit stub link despite
not being defined in the single object file, and (worse) being
included in the output segment (i.e. at the start of the bootloader
entry point!) despite not being specifically included by the linker
script.  I don't understand this behavior at all, and it appears to be
directly contrary to the way the linker is documented.

Marc Herbert discovered this was down to gcc being called with
--enable-default-pie, so -no-pie works to suppress this behavior and
restore the default.  And it's correct: we aren't actually generating
a position independent executable, even if we don't understand why the
linker script is being disregarded (to include sections we don't
include).  See discussion in the linked github issue.

Fixes #15877

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-05-06 19:48:32 -04:00
..
arc kernel: mem_domain: update name/doc of API function for partition add 2019-05-02 11:37:38 -04:00
arm C++: Fix compilation error "invalid conversion" 2019-05-03 14:27:07 -04:00
common license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
nios2 arch: all: Remove not used struct _caller_saved 2019-04-18 12:24:56 -07:00
posix posix: cmake: Abstract freestanding options 2019-04-30 09:33:54 -04:00
riscv32 arch: soc: riscv32: Separate soc offsets from soc context save 2019-05-06 14:52:17 -05:00
x86 kernel: mem_domain: update name/doc of API function for partition add 2019-05-02 11:37:38 -04:00
x86_64 arch/x86_64: Suppress spurious linker-generated code in the 32 bit stub 2019-05-06 19:48:32 -04:00
xtensa arch: all: Remove not used struct _caller_saved 2019-04-18 12:24:56 -07:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig userspace: set default priv stack size to 1024 2019-03-29 22:21:16 -04:00