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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163970
138bc75d-0d04-0410-961f-
82ee72b054a4
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/t-android: Removed.
#include "tconfig.h"
#include "tsystem.h"
#ifndef inhibit_libc
-#include <link.h>
+#include <elf.h> /* Get DT_CONFIG. */
#endif
#include "coretypes.h"
#include "tm.h"
#if defined(USE_PT_GNU_EH_FRAME)
+#include <link.h>
+
#ifndef __RELOC_POINTER
# define __RELOC_POINTER(ptr, base) ((ptr) + (base))
#endif