aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/objdump.c3
-rw-r--r--binutils/readelf.c3
3 files changed, 6 insertions, 6 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 04710e3..950dee7 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2019-05-30 Nick Alcock <nick.alcock@oracle.com>
+
+ * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
+ cts_offset.
+ * readelf.c (shdr_to_ctf_sect): Likewise.
+
2019-05-30 Nick Clifton <nickc@redhat.com>
PR 24627
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 382ba35..b9d08f7 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -3240,10 +3240,7 @@ make_ctfsect (const char *name, bfd_byte *data,
ctf_sect_t ctfsect;
ctfsect.cts_name = name;
- ctfsect.cts_type = SHT_PROGBITS;
- ctfsect.cts_flags = 0;
ctfsect.cts_entsize = 1;
- ctfsect.cts_offset = 0;
ctfsect.cts_size = size;
ctfsect.cts_data = data;
diff --git a/binutils/readelf.c b/binutils/readelf.c
index cfa2df5..8e2902f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -13829,11 +13829,8 @@ static ctf_sect_t *
shdr_to_ctf_sect (ctf_sect_t *buf, Elf_Internal_Shdr *shdr, Filedata *filedata)
{
buf->cts_name = SECTION_NAME (shdr);
- buf->cts_type = shdr->sh_type;
- buf->cts_flags = shdr->sh_flags;
buf->cts_size = shdr->sh_size;
buf->cts_entsize = shdr->sh_entsize;
- buf->cts_offset = (off64_t) shdr->sh_offset;
return buf;
}