PATCH: Fix DWARF2 section lossage
Richard Henderson
rth@redhat.com
Wed Apr 25 13:32:00 GMT 2001
On Wed, Apr 25, 2001 at 01:16:39PM -0700, Mark Mitchell wrote:
> Is simply looking for `.debug_*' and then emitting `.section x' good
> enough?
I wouldn't think so. This would affect __attribute__((section)) as well.
Perhaps enumerating all of the known sections would be ok, but I certainly
don't like it.
What I'd really like to see is
enum section_flags
{
SECT_EXECUTABLE = 1,
SECT_WRITABLE = 2,
SECT_LOADED = 4,
SECT_SHORT = 8,
SECT_COMDAT = 16,
};
#define ASM_OUTPUT_SECTION_NAME (FILE, NAME, DECL, FLAGS)
At present we have a _lot_ of replicated logic to look at a DECL
and figure out what the section flags ought to be. It'd be really
nice to factor that out into common code.
r~
More information about the Gcc
mailing list