diff options
author | Michael Meissner <gnu@the-meissners.org> | 1996-02-15 21:47:33 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1996-02-15 21:47:33 +0000 |
commit | 59011c328c4eecccad041dc9c88c2f5e87562f0f (patch) | |
tree | 38808538e15b6cbf72b22cb90a6be4b2279b95b3 /gas | |
parent | 7e19f60e5a44156252894a4eed7f943ce0c2694d (diff) | |
download | gdb-59011c328c4eecccad041dc9c88c2f5e87562f0f.zip gdb-59011c328c4eecccad041dc9c88c2f5e87562f0f.tar.gz gdb-59011c328c4eecccad041dc9c88c2f5e87562f0f.tar.bz2 |
Do not set undefined symbols to BSF_OBJECT.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/obj-elf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 29b442e..f4f523b 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 } |