diff options
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/xcofflink.c | 2 | ||||
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/sysroot-prefix.exp | 2 |
4 files changed, 12 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 156bb7a..76055ba 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-09-03 Alan Modra <amodra@gmail.com> + + * xcofflink.c (xcoff_get_archive_info): Allocate xcoff_archive_info + on the output bfd objalloc memory. + 2020-09-02 Alan Modra <amodra@gmail.com> * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Correct type diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index 8870525..ca7d7fe 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -525,7 +525,7 @@ xcoff_get_archive_info (struct bfd_link_info *info, bfd *archive) entryp = *slot; if (!entryp) { - entryp = bfd_zalloc (archive, sizeof (entry)); + entryp = bfd_zalloc (info->output_bfd, sizeof (entry)); if (!entryp) return NULL; diff --git a/ld/ChangeLog b/ld/ChangeLog index 0138e88..6c447dd 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2020-09-03 Alan Modra <amodra@gmail.com> + + * testsuite/ld-scripts/sysroot-prefix.exp (single_sysroot_prefix_test): + Log $scriptname. + 2020-08-30 H.J. Lu <hongjiu.lu@intel.com> * testsuite/ld-elf/dwarf.exp: Append $NOSANTIZE_CFLAGS to CFLAGS. diff --git a/ld/testsuite/ld-scripts/sysroot-prefix.exp b/ld/testsuite/ld-scripts/sysroot-prefix.exp index e8b45d1..b7590e2 100644 --- a/ld/testsuite/ld-scripts/sysroot-prefix.exp +++ b/ld/testsuite/ld-scripts/sysroot-prefix.exp @@ -164,7 +164,7 @@ proc single_sysroot_prefix_test { type xtestname finalscript ldopt errstr } { puts $ofd "$finalscript" close $ofd - verbose -log "script: $finalscript" + verbose -log "script $scriptname: $finalscript" set res [ld_link $ld tmpdir/output "$ldopt tmpdir/main.o -Ltmpdir -lsysroottest"] set ld_output "$exec_output" |