diff options
author | Alan Modra <amodra@gmail.com> | 2019-09-12 17:31:41 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-09-12 22:46:25 +0930 |
commit | 0d41d9a2aa059e89d46e549d7d3a367a35a4b739 (patch) | |
tree | 17267bac0f8a6f12f5ca9f579349fd3600947bc8 /ld | |
parent | a19826f4c41219be6fb1adb528fe5fd3a3dc4130 (diff) | |
download | gdb-0d41d9a2aa059e89d46e549d7d3a367a35a4b739.zip gdb-0d41d9a2aa059e89d46e549d7d3a367a35a4b739.tar.gz gdb-0d41d9a2aa059e89d46e549d7d3a367a35a4b739.tar.bz2 |
LOAD in linker map file
For some reason, commit 906e58cab5 2008-05-15 excluded input
statements with BFD_LINKER_CREATED BFDs from being printed to map
files. This isn't ideal since it loses claimed plugin BFDs.
* ldlang.c (print_input_statement): Do not exclude linker created
BFDs.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldlang.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index b3207cc..a39cfad 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,10 @@ 2019-09-12 Alan Modra <amodra@gmail.com> + * ldlang.c (print_input_statement): Do not exclude linker created + BFDs. + +2019-09-12 Alan Modra <amodra@gmail.com> + PR 24981 * ldlang.c (lang_process): Remove assertion. Comment. diff --git a/ld/ldlang.c b/ld/ldlang.c index 5a34e5c..7b381ef 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -4344,9 +4344,7 @@ print_assignment (lang_assignment_statement_type *assignment, static void print_input_statement (lang_input_statement_type *statm) { - if (statm->filename != NULL - && (statm->the_bfd == NULL - || (statm->the_bfd->flags & BFD_LINKER_CREATED) == 0)) + if (statm->filename != NULL) fprintf (config.map_file, "LOAD %s\n", statm->filename); } |