aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-09-23 20:30:22 +0930
committerAlan Modra <amodra@gmail.com>2019-09-25 10:07:10 +0930
commit40ac0077b246e100bfeb918c821bd73562dd176b (patch)
treee98bd976cd0e0858ba98a5d2e1061f098fdb7c05
parentPR25018, readelf crash on 32bits (diff)
downloadbinutils-gdb-40ac0077b246e100bfeb918c821bd73562dd176b.tar.gz
binutils-gdb-40ac0077b246e100bfeb918c821bd73562dd176b.tar.bz2
binutils-gdb-40ac0077b246e100bfeb918c821bd73562dd176b.zip
implicit conversion from enum ld_plugin_level to enum ld_plugin_status
This is a gcc10 warning fix. gold/ * testsuite/plugin_new_section_layout.c (new_input_hook): Correct return status enum values. (cherry picked from commit 6831670dd3c0a64e332b316c95873c57ab19887a)
-rw-r--r--gold/ChangeLog7
-rw-r--r--gold/testsuite/plugin_new_section_layout.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 3566b9018e..71214f70e2 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,10 @@
+2019-09-25 Alan Modra <amodra@gmail.com>
+
+ Apply from master
+ 2019-09-23 Alan Modra <amodra@gmail.com>
+ * testsuite/plugin_new_section_layout.c (new_input_hook): Correct
+ return status enum values.
+
2019-09-24 Nick Clifton <nickc@redhat.com>
* descriptors.cc: Include <string>
diff --git a/gold/testsuite/plugin_new_section_layout.c b/gold/testsuite/plugin_new_section_layout.c
index 2fe0d5ea33..91a7c952b4 100644
--- a/gold/testsuite/plugin_new_section_layout.c
+++ b/gold/testsuite/plugin_new_section_layout.c
@@ -144,12 +144,12 @@ new_input_hook(const struct ld_plugin_input_file *file)
section.shndx = i;
if (get_input_section_type(section, &type) != LDPS_OK)
- return LDPL_FATAL;
+ return LDPS_ERR;
if (type != SHT_PROGBITS)
continue;
if (get_input_section_name(section, &name))
- return LDPL_FATAL;
+ return LDPS_ERR;
/* As in plugin_section_order.c, order is foo() followed by bar()
followed by baz() */
@@ -172,7 +172,7 @@ new_input_hook(const struct ld_plugin_input_file *file)
}
if (num_entries != 3)
- return LDPL_FATAL;
+ return LDPS_ERR;
update_section_order(section_list, num_entries);
unique_segment_for_sections (".text.plugin_created_unique", 0, 0x1000,