elf: Rename is_standard_elf to uses_elf_em

Rename is_standard_elf to uses_elf_em for targets which use elf.em.

binutils/

	PR ld/31289
	* testsuite/lib/binutils-common.exp (is_standard_elf): Renamed
	to ...
	(uses_elf_em): This.

ld/

	PR ld/31289
	* testsuite/ld-elf/fatal-warnings-2a.d: Replace is_standard_elf
	with uses_elf_em.
	* testsuite/ld-elf/fatal-warnings-2b.d: Likewise.
	* testsuite/ld-elf/fatal-warnings-3a.d: Likewise.
	* testsuite/ld-elf/fatal-warnings-3b.d: Likewise.
	* testsuite/ld-elf/fatal-warnings-4a.d: Likewise.
	* testsuite/ld-elf/fatal-warnings-4b.d: Likewise.
This commit is contained in:
H.J. Lu 2024-01-26 05:56:08 -08:00
parent 0aac62aa32
commit 1b06334552
7 changed files with 8 additions and 8 deletions

View File

@ -275,8 +275,8 @@ proc is_generic { } {
return 0 return 0
} }
# Return true if target uses the standard ELF emulation. # Return true if target uses elf.em.
proc is_standard_elf { } { proc uses_elf_em { } {
if { ![is_elf_format] || [is_generic] } { if { ![is_elf_format] || [is_generic] } {
return 0 return 0
} }

View File

@ -2,5 +2,5 @@
#source: start.s #source: start.s
#ld: -z bad-option1 -z bad-option2 #ld: -z bad-option1 -z bad-option2
#warning: -z bad-option1 ignored #warning: -z bad-option1 ignored
#xfail: ![is_standard_elf] #xfail: ![uses_elf_em]
# These targets don't support -z options. # These targets don't support -z options.

View File

@ -2,5 +2,5 @@
#source: start.s #source: start.s
#ld: -z bad-option1 -z bad-option2 #ld: -z bad-option1 -z bad-option2
#warning: -z bad-option2 ignored #warning: -z bad-option2 ignored
#xfail: ![is_standard_elf] #xfail: ![uses_elf_em]
# These targets don't support -z options. # These targets don't support -z options.

View File

@ -2,5 +2,5 @@
#source: start.s #source: start.s
#ld: --fatal-warnings -z bad-option1 -z bad-option2 #ld: --fatal-warnings -z bad-option1 -z bad-option2
#error: unsupported option: -z bad-option1 #error: unsupported option: -z bad-option1
#xfail: ![is_standard_elf] #xfail: ![uses_elf_em]
# These targets don't support -z options. # These targets don't support -z options.

View File

@ -2,5 +2,5 @@
#source: start.s #source: start.s
#ld: --fatal-warnings -z bad-option1 -z bad-option2 #ld: --fatal-warnings -z bad-option1 -z bad-option2
#error: unsupported option: -z bad-option2 #error: unsupported option: -z bad-option2
#xfail: ![is_standard_elf] #xfail: ![uses_elf_em]
# These targets don't support -z options. # These targets don't support -z options.

View File

@ -2,5 +2,5 @@
#source: start.s #source: start.s
#ld: -z bad-option1 -z bad-option2 --fatal-warnings #ld: -z bad-option1 -z bad-option2 --fatal-warnings
#error: unsupported option: -z bad-option1 #error: unsupported option: -z bad-option1
#xfail: ![is_standard_elf] #xfail: ![uses_elf_em]
# These targets don't support -z options. # These targets don't support -z options.

View File

@ -2,5 +2,5 @@
#source: start.s #source: start.s
#ld: -z bad-option1 -z bad-option2 --fatal-warnings #ld: -z bad-option1 -z bad-option2 --fatal-warnings
#error: unsupported option: -z bad-option2 #error: unsupported option: -z bad-option2
#xfail: ![is_standard_elf] #xfail: ![uses_elf_em]
# These targets don't support -z options. # These targets don't support -z options.