From 59011c328c4eecccad041dc9c88c2f5e87562f0f Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 15 Feb 1996 21:47:33 +0000 Subject: [PATCH] Do not set undefined symbols to BSF_OBJECT. --- gas/config/obj-elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 29b442e728e..f4f523b998e 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1171,7 +1171,8 @@ elf_frob_symbol (symp, puntp) #ifdef TC_PPC /* Frob the PowerPC, so that the symbol always has object type if it is not some other type. VxWorks needs this. */ - if ((symp->bsym->flags & (BSF_FUNCTION | BSF_FILE | BSF_SECTION_SYM)) == 0) + if ((symp->bsym->flags & (BSF_FUNCTION | BSF_FILE | BSF_SECTION_SYM)) == 0 + && S_IS_DEFINED (symp)) symp->bsym->flags |= BSF_OBJECT; #endif } -- 2.30.2