diff options
Diffstat (limited to 'bfd/m68klinux.c')
-rw-r--r-- | bfd/m68klinux.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bfd/m68klinux.c b/bfd/m68klinux.c index f2295d1..03f8eaa 100644 --- a/bfd/m68klinux.c +++ b/bfd/m68klinux.c @@ -94,7 +94,8 @@ m68klinux_write_object_contents (abfd) #define GOT_REF_PREFIX "__GOT_" #endif -#define IS_GOT_SYM(name) (CONST_STRNEQ (name, GOT_REF_PREFIX)) +#define IS_GOT_SYM(name) \ + (strncmp (name, GOT_REF_PREFIX, sizeof GOT_REF_PREFIX - 1) == 0) /* See if a symbol name is a reference to the procedure linkage table. */ @@ -102,7 +103,8 @@ m68klinux_write_object_contents (abfd) #define PLT_REF_PREFIX "__PLT_" #endif -#define IS_PLT_SYM(name) (CONST_STRNEQ (name, PLT_REF_PREFIX)) +#define IS_PLT_SYM(name) \ + (strncmp (name, PLT_REF_PREFIX, sizeof PLT_REF_PREFIX - 1) == 0) /* This string is used to generate specialized error messages. */ @@ -443,7 +445,8 @@ linux_tally_symbols (h, data) h = (struct linux_link_hash_entry *) h->root.root.u.i.link; if (h->root.root.type == bfd_link_hash_undefined - && CONST_STRNEQ (h->root.root.root.string, NEEDS_SHRLIB)) + && strncmp (h->root.root.root.string, NEEDS_SHRLIB, + sizeof NEEDS_SHRLIB - 1) == 0) { const char *name; char *p; |