This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-8.1-branch] hurd: Add enough auxv support for AT_ENTRY for PIE binaries
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 08 Jan 2018 11:07:52 -0500
- Subject: [binutils-gdb/gdb-8.1-branch] hurd: Add enough auxv support for AT_ENTRY for PIE binaries
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT d31fecf37cc540c563e97085f1416129f51d3055 ***
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Branch: gdb-8.1-branch
Commit: d31fecf37cc540c563e97085f1416129f51d3055
hurd: Add enough auxv support for AT_ENTRY for PIE binaries
Add PIE support for hurd, by faking an AT_ENTRY auxv entry. That value
is expected to be read by svr4_exec_displacement, which will propagate
the executable displacement.
gdb/ChangeLog:
* gdb/gnu-nat.c: Include <elf.h> and <link.h>.
(gnu_xfer_auxv): New function.
(gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
TARGET_OBJECT_AUXV.
- Follow-Ups:
- Failures on Fedora-x86_64-m32, branch gdb-8.1-branch
- Failures on Fedora-x86_64-m64, branch gdb-8.1-branch
- Failures on Fedora-i686, branch gdb-8.1-branch
- Failures on Fedora-x86_64-native-gdbserver-m32, branch gdb-8.1-branch
- Failures on Fedora-x86_64-native-extended-gdbserver-m32, branch gdb-8.1-branch
- Failures on Fedora-x86_64-cc-with-index, branch gdb-8.1-branch
- Failures on Ubuntu-AArch64-native-gdbserver-m64, branch gdb-8.1-branch
- Failures on Ubuntu-AArch64-m64, branch gdb-8.1-branch
- Failures on Ubuntu-AArch32-native-extended-gdbserver-m32, branch gdb-8.1-branch
- Failures on Ubuntu-AArch32-native-gdbserver-m32, branch gdb-8.1-branch
- Failures on Ubuntu-AArch32-m32, branch gdb-8.1-branch