xref: /linux/tools/build/feature/test-libbfd-buildid.c (revision ec8a42e7343234802b9054874fe01810880289ce)
1 // SPDX-License-Identifier: GPL-2.0
2 #include <bfd.h>
3 
4 int main(void)
5 {
6 	bfd *abfd = bfd_openr("Pedro", 0);
7 	return abfd && (!abfd->build_id || abfd->build_id->size > 0x506564726f);
8 }
9