From: Ian Lance Taylor Date: Tue, 11 Jan 1994 22:35:16 +0000 (+0000) Subject: * config/obj-elf.c: If TC_MIPS, include elf/mips.h. X-Git-Tag: gdb-4_18~16091 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f34e27a18a95a588c23ede4b727eac9a9dc940f0;p=external%2Fbinutils.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index f831b04..c6c0c16 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 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));