Patch - setting SHT_NOBITS

Alan Modra alan@linuxcare.com.au
Thu Sep 28 21:52:00 GMT 2000


On 28 Sep 2000, Momchil Velikov wrote:

> 	* elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
> 	is has the SEC_HAS_CONTENTS flags set.

OK.  You may as well remove the redundant

  else if ((asect->flags & SEC_ALLOC) != 0
	   && (asect->flags & SEC_LOAD) != 0)
    this_hdr->sh_type = SHT_PROGBITS;

and the "Who knows?" comment when you check in this change.

-- 
Linuxcare.  Support for the Revolution.



More information about the Binutils mailing list