compile: Fix function pointers
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 22 Jan 2015 18:18:16 +0000 (19:18 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 22 Jan 2015 18:18:16 +0000 (19:18 +0100)
commit4b62a76e0cd716407859077467fddbb66b715a43
tree1c052819816f43decc7f18570f2a83ed42a9e66a
parent82a864f96aff83edb0c8bb21ead5c28cd10363fe
compile: Fix function pointers

TBH while I always comment reasons for each of the compilation options in
reality I tried them all and chose that combination that needs the most simple
compile/compile-object-load.c (ld.so emulation) implementation.

gdb/ChangeLog
2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>

* compile/compile.c (_initialize_compile): Use -fPIE for compile_args.

gdb/testsuite/ChangeLog
2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>

* gdb.compile/compile.exp (pointer to jit function): New test.
gdb/ChangeLog
gdb/compile/compile.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.compile/compile.exp