Patch from: Jim Pick <jim@jimpick.com>
authorNick Clifton <nickc@redhat.com>
Tue, 29 Jun 1999 02:45:00 +0000 (02:45 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 29 Jun 1999 02:45:00 +0000 (02:45 +0000)
Added code so that .xs linker scripts are called so that ARM shared libraries
are built correctly.
  CVS: ----------------------------------------------------------------------

ld/ChangeLog
ld/emultempl/armelf.em

index f6962ca6fd35c53b683ca95e17153a7f53245775..1e5914df92c17f99c42d6614887b561e30e85a9b 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-28  Jim Pick <jim@jimpick.com>
+
+       * emultempl/armelf.em: Added code so that .xs linker scripts are
+       called so that ARM shared libraries are built correctly.
+
 1999-06-22  Mark Mitchell  <mark@codesourcery.com>
 
        * ldmain.c (main): Initialize link_info.init_function and
index 6e3cfa6fe86f985463f97443dc246e61b6f7a030..88d7e270370c8c1a5359094afe155ed6f93c28f2 100644 (file)
@@ -1215,6 +1215,10 @@ echo '  ; else if (!config.text_read_only) return'         >> e${EMULATION_NAME}
 sed $sc ldscripts/${EMULATION_NAME}.xbn                    >> e${EMULATION_NAME}.c
 echo '  ; else if (!config.magic_demand_paged) return'     >> e${EMULATION_NAME}.c
 sed $sc ldscripts/${EMULATION_NAME}.xn                     >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_SHLIB_SCRIPT" ; then
+        echo '  ; else if (link_info.shared) return'       >> e${EMULATION_NAME}.c
+        sed $sc ldscripts/${EMULATION_NAME}.xs             >> e${EMULATION_NAME}.c
+fi
 echo '  ; else return'                                     >> e${EMULATION_NAME}.c
 sed $sc ldscripts/${EMULATION_NAME}.x                      >> e${EMULATION_NAME}.c
 echo '; }'                                                 >> e${EMULATION_NAME}.c
@@ -1234,6 +1238,8 @@ cat >>e${EMULATION_NAME}.c <<EOF
     return "ldscripts/${EMULATION_NAME}.xbn";
   else if (!config.magic_demand_paged)
     return "ldscripts/${EMULATION_NAME}.xn";
+  else if (link_info.shared)
+    return "ldscripts/${EMULATION_NAME}.xs";
   else
     return "ldscripts/${EMULATION_NAME}.x";
 }