This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Enable PIE check on s390 and ppc
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 27 Sep 2009 22:59:38 +0200 (CEST)
- Subject: [commit] Enable PIE check on s390 and ppc
Hello,
GDB now supports detection of PIE executables on Linux -- but this
works only if linux-tdep.o is linked into the executable. This
did not happen on s390-linux and pppc-linux. Fixed by this patch.
Tested on s390(x)-linux and ppc(64)-linux, fixes the pie-support
testcase regression.
Committed to mainline.
Bye,
Ulrich
ChangeLog:
* configure.tgt (powerpc-*-linux* | powerpc64-*-linux*):
Add linux-tdep.o to gdb_target_obs.
(s390*-*-*): Likewise.
Index: gdb/configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.224
diff -c -p -r1.224 configure.tgt
*** gdb/configure.tgt 6 Aug 2009 10:28:38 -0000 1.224
--- gdb/configure.tgt 25 Sep 2009 18:51:19 -0000
*************** powerpc-*-linux* | powerpc64-*-linux*)
*** 376,382 ****
# Target: PowerPC running Linux
gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
solib.o solib-svr4.o solib-spu.o spu-multiarch.o \
! corelow.o symfile-mem.o"
gdb_sim=../sim/ppc/libsim.a
build_gdbserver=yes
;;
--- 376,382 ----
# Target: PowerPC running Linux
gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
solib.o solib-svr4.o solib-spu.o spu-multiarch.o \
! corelow.o symfile-mem.o linux-tdep.o"
gdb_sim=../sim/ppc/libsim.a
build_gdbserver=yes
;;
*************** powerpc*-*-*)
*** 391,397 ****
s390*-*-*)
# Target: S390 running Linux
! gdb_target_obs="s390-tdep.o solib.o solib-svr4.o"
build_gdbserver=yes
;;
--- 391,397 ----
s390*-*-*)
# Target: S390 running Linux
! gdb_target_obs="s390-tdep.o solib.o solib-svr4.o linux-tdep.o"
build_gdbserver=yes
;;
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com