This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] MIPS: IRIX .section support


This patch adds gas support for the IRIX .section pseudo, e.g.
 .section .ctors,0x1,0x3,0,4
of the form:
 .section name,type,flags,size,alignment
where:
 type are values prefixed by SHF_ in <elf.h>.
 flags are values prefixed by SHT_ in <elf.h>.
 size is the size of each entry
 alignment is the section alignment

The current forms: .section name
	   .section name,"flags"
	   .section "name"
are handled by calling obj_elf_section.  The IRIX forms are handled by
calling obj_elf_change_section.  Currently this is a static routine,
called by only by obj_elf_section.  

       * config/obj-elf.c (obj_elf_change_section): Make non-static.
       config/tc-mips.c (s_change_section): New function to support
       IRIX .section pseudo-op.

Tested on irix 6.

Attachment: irix-section.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]