From f34e27a18a95a588c23ede4b727eac9a9dc940f0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 11 Jan 1994 22:35:16 +0000 Subject: [PATCH] * 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. --- gas/ChangeLog | 6 ++++++ gas/config/tc-mips.h | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index f831b049971..c6c0c165b98 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,11 @@ Tue Jan 11 13:01:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + * 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. + * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss sections to be close together. diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h index f45f2f44caa..9e0f4aa3dd6 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)); -- 2.30.2