mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
removed some obsolete stuff
This commit is contained in:
@ -214,53 +214,6 @@ set_index(symbol, idx)
|
||||
symbol->value = idx;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* move the section with the specified name to the front of the bfd */
|
||||
static void
|
||||
coff_section_to_front(bfd_ptr, move_section_with_this_name)
|
||||
bfd *bfd_ptr;
|
||||
char *move_section_with_this_name;
|
||||
{
|
||||
asection **section_ptr_ptr = &(bfd_ptr->sections);
|
||||
while (*section_ptr_ptr != (asection *)NULL)
|
||||
{
|
||||
asection *section_ptr = *section_ptr_ptr;
|
||||
if (strcmp(section_ptr->name, move_section_with_this_name) == 0)
|
||||
{
|
||||
|
||||
*section_ptr_ptr = section_ptr->next;
|
||||
section_ptr->next = bfd_ptr->sections;
|
||||
bfd_ptr->sections = section_ptr;
|
||||
|
||||
/* Now run through them all and patch the indexes */
|
||||
{
|
||||
unsigned int index = 0;
|
||||
section_ptr = bfd_ptr->sections;
|
||||
|
||||
while (section_ptr != (asection *)NULL) {
|
||||
section_ptr->index = index;
|
||||
index++;
|
||||
section_ptr = section_ptr->next;
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
section_ptr_ptr = &(section_ptr->next);
|
||||
}
|
||||
}
|
||||
|
||||
/* Reorder the sections to .text, .data, .bss */
|
||||
static
|
||||
void
|
||||
coff_section_reorder(abfd)
|
||||
bfd *abfd;
|
||||
{
|
||||
coff_section_to_front(abfd,".bss");
|
||||
coff_section_to_front(abfd,".data");
|
||||
coff_section_to_front(abfd,".text");
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
initialize a section structure with information peculiar to this
|
||||
particular implementation of coff
|
||||
@ -271,7 +224,6 @@ coff_new_section_hook(abfd_ignore, section_ignore)
|
||||
bfd *abfd_ignore;
|
||||
asection *section_ignore;
|
||||
{
|
||||
|
||||
return true;
|
||||
}
|
||||
/* actually it makes itself and its children from the file headers */
|
||||
|
Reference in New Issue
Block a user