This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
COFF .endef Handling of def_symbol_in_progress
- To: binutils at sourceware dot cygnus dot com
- Subject: COFF .endef Handling of def_symbol_in_progress
- From: Tracy Kuhrt <Tracy dot Kuhrt at microchip dot com>
- Date: Thu, 06 Sep 2001 09:45:32 -0700
In the obj_coff_endef function, the following exists:
static void
obj_coff_endef (ignore)
int ignore ATTRIBUTE_UNUSED;
{
...
/* Set the section number according to storage class. */
switch (S_GET_STORAGE_CLASS (def_symbol_in_progress))
{
...
case C_FCN:
{
CONST char *name;
S_SET_SEGMENT (def_symbol_in_progress, text_section);
Why is the def_symbol_in_progress' section set to the text_section
versus now_seg? If the compiler/user defines a section that is located
in the code section and is requesting debug information the .bf and .ef
symbols for a function in that section appear in the text section versus
the user-defined section. Is this the correct behavior?
Tracy