* 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/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-scrips/sort.exp: Skip these tests when the target is the
        h8300.
This commit is contained in:
Nick Clifton
2010-01-13 14:08:54 +00:00
parent 11db68fd8d
commit 52b010e442
11 changed files with 104 additions and 5 deletions

View File

@ -25,6 +25,12 @@ if ![is_elf_format] {
return
}
# The h8300 port issues a warning message for
# new sections created without atrributes.
if [istarget "h8300-*-*"] {
return
}
load_lib ld-lib.exp
set sort_test_list [lsort [glob -nocomplain $srcdir/$subdir/sort*.d]]