diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-09-28 15:29:33 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-09-28 15:35:55 -0700 |
commit | 79c1bf3c71fcf5d453733ee45321e3fbc57b04b2 (patch) | |
tree | c7c07b27750c2688cb99ea806b88c78c25be1186 /bfd/elf-properties.c | |
parent | f37bc8b13c898fa39731c20d8565b24e006c13a8 (diff) | |
download | gdb-79c1bf3c71fcf5d453733ee45321e3fbc57b04b2.zip gdb-79c1bf3c71fcf5d453733ee45321e3fbc57b04b2.tar.gz gdb-79c1bf3c71fcf5d453733ee45321e3fbc57b04b2.tar.bz2 |
bfd: Use elfclass instead of bed->s->elfclass
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.
Diffstat (limited to 'bfd/elf-properties.c')
-rw-r--r-- | bfd/elf-properties.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf-properties.c b/bfd/elf-properties.c index 0d98ef1..861db73 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); |