From d9dd20453a5e1ace27b71c66ca2b92f49c7271c2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 17 Apr 2018 18:15:13 -0700 Subject: [PATCH] x86: Don't define elf32_bed/elf64_bed variables Define elf32_bed and elf64_bed before including "elf32-target.h" and "elf64-target.h" to avoid local elf32_bed and elf64_bed variables. * elf32-i386.c (elf32_bed): Define before including "elf32-target.h". * elf64-x86-64.c (elf64_bed): Define before including "elf64-target.h". (elf32_bed): Define before including "elf32-target.h". --- bfd/ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8a9b96608be..b377bd3ead5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2018-04-17 H.J. Lu + + * elf32-i386.c (elf32_bed): Define before including + "elf32-target.h". + * elf64-x86-64.c (elf64_bed): Define before including + "elf64-target.h". + (elf32_bed): Define before including "elf32-target.h". + 2018-04-17 H.J. Lu PR ld/23055 -- 2.30.2