mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-14 19:38:01 +08:00
* 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.
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
Tue Jan 11 13:01:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
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
|
* config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
|
||||||
sections to be close together.
|
sections to be close together.
|
||||||
|
|
||||||
|
@ -99,8 +99,20 @@ extern unsigned long mips_gprmask;
|
|||||||
extern unsigned long mips_cprmask[4];
|
extern unsigned long mips_cprmask[4];
|
||||||
|
|
||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
|
|
||||||
#define elf_tc_final_processing mips_elf_final_processing
|
#define elf_tc_final_processing mips_elf_final_processing
|
||||||
extern void mips_elf_final_processing PARAMS ((void));
|
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
|
#endif
|
||||||
|
|
||||||
extern void md_mips_end PARAMS ((void));
|
extern void md_mips_end PARAMS ((void));
|
||||||
|
Reference in New Issue
Block a user