Committed: h8300: Issue a warning for new sections created without attributes

Nick Clifton nickc@redhat.com
Wed Jan 13 14:09:00 GMT 2010


Hi Guys,

  I am applying the patch below to add a feature to the H8300 port of
  GAS.  If a new section is created without specifying any attributes
  then a warning message will be issued.  Well known sections (.text,
  .data. .bss. etc) will not generate this message.  This feature is to
  help programmers who create new code sections but who forget to give
  them an "executable" attribute.  Doing this on the H8300 port results
  in problems later on when relocs are generated and issuing the warning
  message helps the programmers find the problem.

Cheers
  Nick

gas/ChangeLog
2010-01-13  Nick Clifton  <nickc@redhat.com>

	* config/tc-h8300.c (h8300_elf_section): New function - issue a
	warning message if a new section is created without setting any
	attributes for it.
	(md_pseudo_table): Intercept section creation pseudos.
	(md_pcrel_from): Replace abort with an error message.
	* config/obj-elf.c (obj_elf_section_name): Export this function.
	* config/obj-elf.h (obj_elf_section_name): Prototype.

gas/testsuite/ChangeLog
2010-01-13  Nick Clifton  <nickc@redhat.com>

	* gas/elf/section0.d: Skip this test for the h8300.
	* gas/elf/section1.d: Likewise.
	* gas/elf/section6.d: Likewise.
	* gas/elf/elf.exp: Skip section2 and section5 tests when the
	target is the h8300.

ld/testsuite/ChangeLog
2010-01-13  Nick Clifton  <nickc@redhat.com>

	* ld-scrips/sort.exp: Skip these tests when the target is the
	h8300.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: h8300.patch
Type: text/x-patch
Size: 7824 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100113/187c312b/attachment.bin>


More information about the Binutils mailing list