removed some obsolete stuff

This commit is contained in:
Steve Chamberlain
1991-03-26 20:49:02 +00:00
parent d6aa3fb01a
commit 067605b0fe

View File

@ -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 */