[PATCH] MIPS: IRIX .section support

Stan Cox scox@redhat.com
Mon Aug 12 10:51:00 GMT 2002


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: irix-section.patch
Type: application/octet-stream
Size: 3168 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20020812/062e7efa/attachment.obj>


More information about the Binutils mailing list