This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
New Hook In Gas
- To: binutils at sources dot redhat dot com
- Subject: New Hook In Gas
- From: John Healy <jhealy at redhat dot com>
- Date: Mon, 09 Jul 2001 17:08:21 -0400
- CC: jhealy at redhat dot com
Hi,
I'd like to add a new hook to gas/config/obj-elf.c (obj_elf_section). I
need it for an internal port that requires section data to be tracked.
The patch is attached. If there are any comments or objections, please
let me know. If I don't hear anything, I'll check it in in a day or
so.
Thanks,
John Healy
Simulation Engineer,
Red Hat
jhealy@redhat.com
[gas]
2001-07-09 John Healy <jhealy@redhat.com>
* config/obj-elf.c (obj_elf_section): md_elf_section_change_data_hook
added to grab section information after it's been extracted from the
.section directive.
? gas/testsuite/tempupdate
Index: gas/config/obj-elf.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-elf.c,v
retrieving revision 1.30
diff -c -4 -p -r1.30 obj-elf.c
*** obj-elf.c 2001/04/13 00:34:36 1.30
--- obj-elf.c 2001/07/09 21:00:21
*************** obj_elf_section (push)
*** 981,988 ****
--- 981,992 ----
as_warn (_("Entity size for SHF_MERGE not specified.\nSpecify entity size as 4th argument"));
attr &= SHF_MERGE;
}
+ #ifdef md_elf_section_change_data_hook
+ md_elf_section_change_data_hook (name, type, attr, entsize, push);
+ #endif
+
obj_elf_change_section (name, type, attr, entsize, push);
}
/* Change to the .data section. */