This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR gas/10531: Strange assembler warning message on section group
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 18 Aug 2009 12:42:18 +0930
- Subject: Re: PATCH: PR gas/10531: Strange assembler warning message on section group
- References: <20090817230721.GA11906@lucon.org>
On Mon, Aug 17, 2009 at 04:07:21PM -0700, H.J. Lu wrote:
> We can't use bfd_get_section_by_name, subseg_new and subseg_get directly
> in dwarf2dbg.c since they don't know ELF section groups. This patch adds
> obj_get_section_by_name, obj_subseg_new and obj_subseg_get. Tested on
> Linux/ia32, Linux/ia64 and Linux/Intel64. OK to install?
Have you tested this with a multi-obj assembler? I suspect that
something like x86-as --em=i386coff --gdwarf-2 will attempt to
access elf-only data structures. (That's a slightly ridiculous
set of command line options for x86, but we shouldn't have gas
segfault.) I think the proper patch needs some new fields in
struct format_ops and defines in obj-multi.h.
--
Alan Modra
Australia Development Lab, IBM