diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-04-20 02:53:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-04-20 02:53:22 +0000 |
commit | aff65ed99ddd2dde1a8931f076f8d6c7cec4083a (patch) | |
tree | e826ff575a77e1b7ca598b17e36b83c41c029e76 /gas/config | |
parent | 752eaefc858f0b2c4d00d0b1feb95a58a83be0c6 (diff) | |
download | gdb-aff65ed99ddd2dde1a8931f076f8d6c7cec4083a.zip gdb-aff65ed99ddd2dde1a8931f076f8d6c7cec4083a.tar.gz gdb-aff65ed99ddd2dde1a8931f076f8d6c7cec4083a.tar.bz2 |
Sat Apr 19 22:52:03 1997 Jim Wilson <wilson@cygnus.com>
* config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
for all undefined symbols.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-elf.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 40c6d02..c861d54 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -845,6 +845,16 @@ obj_elf_text (i) #endif } +/* This can be called from the processor backends if they change + sections. */ + +void +obj_elf_section_change_hook () +{ + previous_section = now_seg; + previous_subsection = now_subseg; +} + void obj_elf_previous (ignore) int ignore; @@ -1362,10 +1372,11 @@ elf_frob_symbol (symp, puntp) } #ifdef TC_MIPS - /* The Irix 5 assembler appears to set the type of any common symbol - to STT_OBJECT. We try to be compatible, since the Irix 5 linker - apparently sometimes cares. FIXME: What about Irix 6? */ - if (S_IS_COMMON (symp)) + /* The Irix 5 and 6 assemblers set the type of any common symbol and + any undefined non-function symbol to STT_OBJECT. We try to be compatible, + since newer Irix 5 and 6 linkers care. */ + if (S_IS_COMMON (symp) + || (! S_IS_DEFINED (symp) && ((symp->bsym->flags & BSF_FUNCTION) == 0))) symp->bsym->flags |= BSF_OBJECT; #endif |