[COMMITTED, PATCH] ldlang.c: Don't include "elf-bfd.h" twice
H.J. Lu
hjl.tools@gmail.com
Thu Aug 7 14:41:11 GMT 2025
* ldlang.c: Don't include "elf-bfd.h" twice.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
ld/ldlang.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 6e31c359c9d..fc7a7d2ced6 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -44,14 +44,10 @@
#include "elf-bfd.h"
#include "bfdver.h"
#include <errno.h>
-
#if BFD_SUPPORTS_PLUGINS
#include "plugin.h"
#endif
-/* FIXME: Put it here to avoid NAME conflict from ldgram.h. */
-#include "elf-bfd.h"
-
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) & (((TYPE*) 0)->MEMBER))
#endif
--
2.50.1
More information about the Binutils
mailing list