aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/emultempl/hppaosf.em6
-rw-r--r--ld/emultempl/m88kbcs.em5
-rw-r--r--ld/ldsym.c2
3 files changed, 10 insertions, 3 deletions
diff --git a/ld/emultempl/hppaosf.em b/ld/emultempl/hppaosf.em
index 3bbb945..0bd2318 100644
--- a/ld/emultempl/hppaosf.em
+++ b/ld/emultempl/hppaosf.em
@@ -29,6 +29,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
#include "ldemul.h"
#include "ldfile.h"
+#include "ldexp.h"
#include "ldlang.h"
#include "ldmisc.h"
@@ -43,6 +44,11 @@ extern bfd *output_bfd;
static void hppaosf_before_parse()
{
+ extern char *lprefix;
+ extern unsigned int lprefix_len;
+ lprefix = "L$";
+ lprefix_len = 2;
+
ldfile_output_architecture = bfd_arch_hppa;
}
diff --git a/ld/emultempl/m88kbcs.em b/ld/emultempl/m88kbcs.em
index a1add23..77b726f 100644
--- a/ld/emultempl/m88kbcs.em
+++ b/ld/emultempl/m88kbcs.em
@@ -42,8 +42,9 @@ extern char *ldfile_output_machine_name;
static void
gld${EMULATION_NAME}_before_parse()
{
- extern char lprefix;
- lprefix = '@';
+ extern char *lprefix;
+ lprefix = "@";
+ lprefix_len = 1;
ldfile_output_architecture = bfd_arch_${ARCH};
}
diff --git a/ld/ldsym.c b/ld/ldsym.c
index 74f7956..6de790d 100644
--- a/ld/ldsym.c
+++ b/ld/ldsym.c
@@ -512,7 +512,7 @@ write_file_locals (output_buffer)
{
}
else if (discard_locals == DISCARD_L &&
- (p->name[0] == lprefix))
+ !strncmp (lprefix, p->name, lprefix_len))
{
}
else if (p->flags == BSF_WARNING)