aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2005-02-16 05:10:02 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2005-02-16 05:10:02 +0000
commitff925e69c551bca76b417c3beb9651746ae021b0 (patch)
treee89b28aeeb7217bb664b2438899eeb8b3f526c04
parentddc07134b8f8ec67aed5de490e6bd9aadf1e5641 (diff)
downloadgdb-ff925e69c551bca76b417c3beb9651746ae021b0.zip
gdb-ff925e69c551bca76b417c3beb9651746ae021b0.tar.gz
gdb-ff925e69c551bca76b417c3beb9651746ae021b0.tar.bz2
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
lib_path if NATIVE is yes.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emultempl/elf32.em6
2 files changed, 10 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 97c7d98..7138eda 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
+
+ * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
+ lib_path if NATIVE is yes.
+
2005-02-16 Alan Modra <amodra@bigpond.net.au>
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 183693e..886c7a4 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -836,9 +836,13 @@ gld${EMULATION_NAME}_after_open (void)
size_t len;
search_dirs_type *search;
EOF
-if [ "x${USE_LIBPATH}" = xyes ] ; then
+if [ "x${NATIVE}" = xyes ] ; then
cat >>e${EMULATION_NAME}.c <<EOF
const char *lib_path;
+EOF
+fi
+if [ "x${USE_LIBPATH}" = xyes ] ; then
+cat >>e${EMULATION_NAME}.c <<EOF
struct bfd_link_needed_list *rp;
int found;
EOF