mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-12 12:16:04 +08:00
5a98fb7513
Close the file descriptor if there is no archive plugin file descriptor to avoid running out of file descriptors on thin archives with many archive members. bfd/ PR ld/28138 * plugin.c (bfd_plugin_close_file_descriptor): Close the file descriptor there is no archive plugin file descriptor. ld/ PR ld/28138 * testsuite/ld-plugin/lto.exp: Run ld/28138 tests. * testsuite/ld-plugin/pr28138.c: New file. * testsuite/ld-plugin/pr28138-1.c: Likewise. * testsuite/ld-plugin/pr28138-2.c: Likewise. * testsuite/ld-plugin/pr28138-3.c: Likewise. * testsuite/ld-plugin/pr28138-4.c: Likewise. * testsuite/ld-plugin/pr28138-5.c: Likewise. * testsuite/ld-plugin/pr28138-6.c: Likewise. * testsuite/ld-plugin/pr28138-7.c: Likewise.
21 lines
169 B
C
21 lines
169 B
C
#include <stdio.h>
|
|
|
|
extern int a7(void);
|
|
|
|
int
|
|
a0(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
main()
|
|
{
|
|
if (a7() == 7)
|
|
{
|
|
printf ("PASS\n");
|
|
return 0;
|
|
}
|
|
return 1;
|
|
}
|