mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-10 04:39:30 +08:00
config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file.
* config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file. * unwind-dw2-fde-dip.c: Don't include <elf.h> on OpenBSD. (USE_PT_GNU_EH_FRAME): Define for OpenBSD. (ElfW): Likewise. From-SVN: r192148
This commit is contained in:
parent
d2edfb151d
commit
8eaee0f0f1
@ -1,3 +1,10 @@
|
||||
2012-10-06 Mark Kettenis <kettenis@openbsd.org>
|
||||
|
||||
* config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file.
|
||||
* unwind-dw2-fde-dip.c: Don't include <elf.h> on OpenBSD.
|
||||
(USE_PT_GNU_EH_FRAME): Define for OpenBSD.
|
||||
(ElfW): Likewise.
|
||||
|
||||
2012-10-05 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
PR other/53889
|
||||
|
@ -213,7 +213,7 @@ case ${host} in
|
||||
esac
|
||||
;;
|
||||
*-*-openbsd*)
|
||||
tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic"
|
||||
tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
|
||||
case ${target_thread_file} in
|
||||
posix)
|
||||
tmake_file="$tmake_file t-openbsd-thread"
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "tconfig.h"
|
||||
#include "tsystem.h"
|
||||
#ifndef inhibit_libc
|
||||
#if !defined(inhibit_libc) && !defined(__OpenBSD__)
|
||||
#include <elf.h> /* Get DT_CONFIG. */
|
||||
#endif
|
||||
#include "coretypes.h"
|
||||
@ -64,6 +64,12 @@
|
||||
# define USE_PT_GNU_EH_FRAME
|
||||
#endif
|
||||
|
||||
#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
|
||||
&& defined(__OpenBSD__)
|
||||
# define ElfW(type) Elf_##type
|
||||
# define USE_PT_GNU_EH_FRAME
|
||||
#endif
|
||||
|
||||
#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
|
||||
&& defined(TARGET_DL_ITERATE_PHDR) \
|
||||
&& defined(__sun__) && defined(__svr4__)
|
||||
|
Loading…
Reference in New Issue
Block a user