diff options
author | 2022-02-14 08:11:42 (GMT) | |
---|---|---|
committer | 2022-02-14 08:11:42 (GMT) | |
commit | 681aaef1f1ff39c341fdc529e0db2c14639a58d8 (patch) | |
tree | ce98c2b3d9648db065d27add325370392a35d584 /packages/binutils/2.37/0016-pr28540-segmentation-fault-on-NULL-byte_get.patch | |
parent | ba680a3e5b8c62a7c1554e71f6d09903dac95a2f (diff) | |
parent | 86c2982568de1ad4d4cc12a65b19231331484405 (diff) |
Merge pull request #1674 from stilor/master
Updates to make `ct-ng build-all` pass
Diffstat (limited to 'packages/binutils/2.37/0016-pr28540-segmentation-fault-on-NULL-byte_get.patch')
-rw-r--r-- | packages/binutils/2.37/0016-pr28540-segmentation-fault-on-NULL-byte_get.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/binutils/2.37/0016-pr28540-segmentation-fault-on-NULL-byte_get.patch b/packages/binutils/2.37/0016-pr28540-segmentation-fault-on-NULL-byte_get.patch new file mode 100644 index 0000000..e0be9b7 --- /dev/null +++ b/packages/binutils/2.37/0016-pr28540-segmentation-fault-on-NULL-byte_get.patch @@ -0,0 +1,25 @@ +From 96eb21265ebffbc28f767bed9a2b7650ecb9818d Mon Sep 17 00:00:00 2001 +From: Alan Modra <amodra@gmail.com> +Date: Thu, 4 Nov 2021 14:11:02 +1030 +Subject: [PATCH] PR28540, segmentation fault on NULL byte_get + + PR 28540 + * objdump.c (dump_bfd): Don't attempt load_separate_debug_files + when byte_get is NULL. + +(cherry picked from commit f2f105f518413ea3e4c212f89585f9a8a5dddcdd) +--- + binutils/objdump.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/binutils/objdump.c ++++ b/binutils/objdump.c +@@ -4869,7 +4869,7 @@ + + The test on is_mainfile is there because the chain of separate debug + info files is a global variable shared by all invocations of dump_bfd. */ +- if (is_mainfile) ++ if (byte_get != NULL && is_mainfile) + { + load_separate_debug_files (abfd, bfd_get_filename (abfd)); + |