H.J. Lu
2018-09-28 22:36:35 UTC
elfclass has been set to bed->s->elfclass earlier.
* elf-properties.c (_bfd_elf_link_setup_gnu_properties): Use
elfclass instead of bed->s->elfclass.
---
bfd/ChangeLog | 7 ++++++-
bfd/elf-properties.c | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fe595c3488..31fb5479a1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-28 H.J. Lu <***@intel.com>
+
+ * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Use
+ elfclass instead of bed->s->elfclass.
+
2018-09-27 Jim Wilson <***@sifive.com>
* elfnn-riscv.c (riscv_init_pcgp_relocs): Add explanatory comment.
@@ -239,7 +244,7 @@
to calculate header and padding size. Use filepos of the first
section otherwise.
-018-08-31 H.J. Lu <***@intel.com>
+2018-08-31 H.J. Lu <***@intel.com>
PR ld/23600
* archures.c (bfd_arch_get_compatible): Allow an IR object with
diff --git a/bfd/elf-properties.c b/bfd/elf-properties.c
index 0d98ef1eec..861db73170 100644
--- a/bfd/elf-properties.c
+++ b/bfd/elf-properties.c
@@ -488,7 +488,7 @@ _bfd_elf_link_setup_gnu_properties (struct bfd_link_info *info)
{
bfd_size_type size;
bfd_byte *contents;
- unsigned int align_size = bed->s->elfclass == ELFCLASS64 ? 8 : 4;
+ unsigned int align_size = elfclass == ELFCLASS64 ? 8 : 4;
sec = bfd_get_section_by_name (first_pbfd,
NOTE_GNU_PROPERTY_SECTION_NAME);
* elf-properties.c (_bfd_elf_link_setup_gnu_properties): Use
elfclass instead of bed->s->elfclass.
---
bfd/ChangeLog | 7 ++++++-
bfd/elf-properties.c | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fe595c3488..31fb5479a1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-28 H.J. Lu <***@intel.com>
+
+ * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Use
+ elfclass instead of bed->s->elfclass.
+
2018-09-27 Jim Wilson <***@sifive.com>
* elfnn-riscv.c (riscv_init_pcgp_relocs): Add explanatory comment.
@@ -239,7 +244,7 @@
to calculate header and padding size. Use filepos of the first
section otherwise.
-018-08-31 H.J. Lu <***@intel.com>
+2018-08-31 H.J. Lu <***@intel.com>
PR ld/23600
* archures.c (bfd_arch_get_compatible): Allow an IR object with
diff --git a/bfd/elf-properties.c b/bfd/elf-properties.c
index 0d98ef1eec..861db73170 100644
--- a/bfd/elf-properties.c
+++ b/bfd/elf-properties.c
@@ -488,7 +488,7 @@ _bfd_elf_link_setup_gnu_properties (struct bfd_link_info *info)
{
bfd_size_type size;
bfd_byte *contents;
- unsigned int align_size = bed->s->elfclass == ELFCLASS64 ? 8 : 4;
+ unsigned int align_size = elfclass == ELFCLASS64 ? 8 : 4;
sec = bfd_get_section_by_name (first_pbfd,
NOTE_GNU_PROPERTY_SECTION_NAME);
--
2.17.1
2.17.1