Commit 4e751772 by H.J. Lu Committed by H.J. Lu

Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.

2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>

	* unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
	Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.

From-SVN: r163970
parent 274eec6c
2010-09-07 H.J. Lu <hongjiu.lu@intel.com> 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
* unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Don't append t-android for Android targets. * config.gcc: Don't append t-android for Android targets.
* config/t-android: Removed. * config/t-android: Removed.
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "tconfig.h" #include "tconfig.h"
#include "tsystem.h" #include "tsystem.h"
#ifndef inhibit_libc #ifndef inhibit_libc
#include <link.h> #include <elf.h> /* Get DT_CONFIG. */
#endif #endif
#include "coretypes.h" #include "coretypes.h"
#include "tm.h" #include "tm.h"
...@@ -59,6 +59,8 @@ ...@@ -59,6 +59,8 @@
#if defined(USE_PT_GNU_EH_FRAME) #if defined(USE_PT_GNU_EH_FRAME)
#include <link.h>
#ifndef __RELOC_POINTER #ifndef __RELOC_POINTER
# define __RELOC_POINTER(ptr, base) ((ptr) + (base)) # define __RELOC_POINTER(ptr, base) ((ptr) + (base))
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment