summaryrefslogtreecommitdiff
path: root/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-09-16 16:28:19 +0200
committerDavid Seifert <soap@gentoo.org>2020-09-16 16:28:19 +0200
commitb452252b4726733b0b997a9d31b95e18bd6b71c2 (patch)
treea7c2a61dc318c23ddca7a1349c0e9db3575d4b1e /dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch
parent0835ccb1949dd9931fd761dd521bc56cf513233b (diff)
downloadgentoo-b452252b4726733b0b997a9d31b95e18bd6b71c2.tar.gz
gentoo-b452252b4726733b0b997a9d31b95e18bd6b71c2.tar.bz2
gentoo-b452252b4726733b0b997a9d31b95e18bd6b71c2.zip
dev-embedded/dc-tool-ip: Port to EAPI 7
Closes: https://bugs.gentoo.org/722592 Closes: https://bugs.gentoo.org/742173 Package-Manager: Portage-3.0.7, Repoman-3.0.1 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch')
-rw-r--r--dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch b/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch
new file mode 100644
index 000000000000..2b3b32d7e3f4
--- /dev/null
+++ b/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch
@@ -0,0 +1,22 @@
+--- a/host-src/tool/dc-tool.c
++++ b/host-src/tool/dc-tool.c
+@@ -431,13 +431,13 @@
+ if ((section->flags & SEC_HAS_CONTENTS) && (section->flags & SEC_LOAD)) {
+ printf("Section %s, ",section->name);
+ printf("lma 0x%x, ",section->lma);
+- printf("size %d\n",section->_raw_size);
+- if (section->_raw_size) {
+- size += section->_raw_size;
+- inbuf = malloc(section->_raw_size);
+- bfd_get_section_contents(somebfd, section, inbuf, 0, section->_raw_size);
++ printf("size %d\n",section->rawsize);
++ if (section->rawsize) {
++ size += section->rawsize;
++ inbuf = malloc(section->rawsize);
++ bfd_get_section_contents(somebfd, section, inbuf, 0, section->rawsize);
+
+- send_data(inbuf, section->lma, section->_raw_size);
++ send_data(inbuf, section->lma, section->rawsize);
+
+ free(inbuf);
+ }