with only one character.
(lprefix_len): Set default to one.
* ldmain.h (lprefix_len): Declare.
* ldsym.c (write_file_locals): Use strncmp rather than a character
comparison for lprefix.
* emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
correctly.
* emultmpl/hppaosf.em: Include ldexp.h.
(before_parse): Set lprefix and lprefix_len correctly.
#include "config.h"
#include "ldemul.h"
#include "ldfile.h"
+#include "ldexp.h"
#include "ldlang.h"
#include "ldmisc.h"
static void hppaosf_before_parse()
{
+ extern char *lprefix;
+ extern unsigned int lprefix_len;
+ lprefix = "L$";
+ lprefix_len = 2;
+
ldfile_output_architecture = bfd_arch_hppa;
}
static void
gld${EMULATION_NAME}_before_parse()
{
- extern char lprefix;
- lprefix = '@';
+ extern char *lprefix;
+ lprefix = "@";
+ lprefix_len = 1;
ldfile_output_architecture = bfd_arch_${ARCH};
}
{
}
else if (discard_locals == DISCARD_L &&
- (p->name[0] == lprefix))
+ !strncmp (lprefix, p->name, lprefix_len))
{
}
else if (p->flags == BSF_WARNING)