* config/obj-elf.c: If TC_MIPS, include elf/mips.h.
authorIan Lance Taylor <ian@airs.com>
Tue, 11 Jan 1994 22:35:16 +0000 (22:35 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 11 Jan 1994 22:35:16 +0000 (22:35 +0000)
(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
gas/config/tc-mips.h

index f831b04..c6c0c16 100644 (file)
@@ -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.
 
index f45f2f4..9e0f4aa 100644 (file)
@@ -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));