diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-01-11 22:35:16 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-01-11 22:35:16 +0000 |
commit | f34e27a18a95a588c23ede4b727eac9a9dc940f0 (patch) | |
tree | f73b40fbcfd46c7d7d483b11c57d4bed58e1b142 /gas/config | |
parent | 4e76ae53fc8ac37794d10605fdf3e8c9621f93bc (diff) | |
download | gdb-f34e27a18a95a588c23ede4b727eac9a9dc940f0.zip gdb-f34e27a18a95a588c23ede4b727eac9a9dc940f0.tar.gz gdb-f34e27a18a95a588c23ede4b727eac9a9dc940f0.tar.bz2 |
* config/obj-elf.c: If TC_MIPS, include elf/mips.h.
(special_sections): Define.
(obj_elf_special_section): Get default types and attributes from
list of special sections.
* config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h index f45f2f4..9e0f4aa 100644 --- a/gas/config/tc-mips.h +++ b/gas/config/tc-mips.h @@ -99,8 +99,20 @@ extern unsigned long mips_gprmask; extern unsigned long mips_cprmask[4]; #ifdef OBJ_ELF + #define elf_tc_final_processing mips_elf_final_processing extern void mips_elf_final_processing PARAMS ((void)); + +#define ELF_TC_SPECIAL_SECTIONS \ + { ".sdata", SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL }, \ + { ".sbss", SHT_NOBITS, SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL }, \ + { ".lit4", SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL }, \ + { ".lit8", SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL }, \ + { ".ucode", SHT_MIPS_UCODE, 0 }, \ + { ".mdebug", SHT_MIPS_DEBUG, 0 }, +/* Other special sections not generated by the assembler: .reginfo, + .liblist, .conflict, .gptab, .got, .dynamic, .rel.dyn. */ + #endif extern void md_mips_end PARAMS ((void)); |