[PATCH] ld/testsuite: enable build-id for ELF platforms
Clément Chigot
chigot@adacore.com
Fri May 29 13:45:56 GMT 2026
On Fri, May 29, 2026 at 3:33 PM Clément Chigot <chigot@adacore.com> wrote:
>
> --build-id is defined within elf.em and thus should be available for
> all platforms matching "is_elf_format".
@Alan Modra I've tested a couple of ELF platforms internally. But I
don't know if there is a way to trigger this test for all ELF
emulations ? `--enable-targets=all` doesn't seem to be enough.
Otherwise, I'll adjust if some ELF targets don't support it.
> ---
> ld/testsuite/ld-elf/build-id.exp | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/ld/testsuite/ld-elf/build-id.exp b/ld/testsuite/ld-elf/build-id.exp
> index cabbcbd289a..15f90d3205e 100644
> --- a/ld/testsuite/ld-elf/build-id.exp
> +++ b/ld/testsuite/ld-elf/build-id.exp
> @@ -29,13 +29,6 @@ if { [istarget frv-*-*] || [istarget lm32-*-*] } {
> return
> }
>
> -if { !([istarget *-*-linux*]
> - || [istarget arm*-*-uclinuxfdpiceabi]
> - || [istarget *-*-gnu*]) } then {
> - return
> -}
> -
> -
> set stylelist {"" "--build-id" "--build-id=none" "--build-id=md5"
> "--build-id=sha1" "--build-id=guid" "--build-id=0xdeadbeef"}
>
> --
> 2.43.0
>
More information about the Binutils
mailing list