COFF .endef Handling of def_symbol_in_progress
Tracy Kuhrt
Tracy.Kuhrt@microchip.com
Thu Sep 6 09:45:00 GMT 2001
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
More information about the Binutils
mailing list