Do arm_abi detection for ELFOSABI_GNU binaries
authorKyle Huey <me@kylehuey.com>
Thu, 28 May 2015 08:12:12 +0000 (09:12 +0100)
committerYao Qi <yao.qi@linaro.org>
Thu, 28 May 2015 08:15:35 +0000 (09:15 +0100)
commitd403db2720ef6ac091dd1c0101ffc60242199528
tree19dd36cbb3d4ec22365ef3d70f23c5ebdec00e28
parent124b4f8708f534e44787d7edf22d214d2ec225be
Do arm_abi detection for ELFOSABI_GNU binaries

On ARM systems, gdb must determine which style of breakpoint to use
(see the comments at the beginning of gdb/arm-linux-tdep.c).  In
arm_gdbarch_init we only attempt to extract the eabi version from the
ELF binary if it is a ELFOSABI_NONE binary.  If the binary is
ELFOSABI_GNU instead, we end up defaulting to the old style OABI
syscall breakpoint instruction.  On a Linux kernel built without
CONFIG_OABI_COMPAT, this triggers a SIGILL in ld when attempting to
execute any ELFOSABI_GNU program.
(e.g. https://github.com/raspberrypi/linux/issues/766)

gdb/

2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)

* gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
ELFOSABI_GNU binaries.
gdb/ChangeLog
gdb/arm-tdep.c
This page took 0.030031 seconds and 4 git commands to generate.