From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../dc-tool-ip/files/1.0.4-bfd-update.patch | 22 ++++++++++++++++++++++ .../files/dc-tool-ip-1.0.4-headers.patch | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 dev-embedded/dc-tool-ip/files/1.0.4-bfd-update.patch create mode 100644 dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-headers.patch (limited to 'dev-embedded/dc-tool-ip/files') diff --git a/dev-embedded/dc-tool-ip/files/1.0.4-bfd-update.patch b/dev-embedded/dc-tool-ip/files/1.0.4-bfd-update.patch new file mode 100644 index 000000000000..62da02f12e98 --- /dev/null +++ b/dev-embedded/dc-tool-ip/files/1.0.4-bfd-update.patch @@ -0,0 +1,22 @@ +--- host-src/tool/dc-tool.c.orig 2004-11-13 19:38:50.007151024 -0500 ++++ host-src/tool/dc-tool.c 2004-11-13 19:38:58.320887144 -0500 +@@ -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); + } diff --git a/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-headers.patch b/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-headers.patch new file mode 100644 index 000000000000..678278262900 --- /dev/null +++ b/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-headers.patch @@ -0,0 +1,22 @@ +--- a/host-src/tool/dc-tool.c ++++ b/host-src/tool/dc-tool.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #ifdef _WIN32 + #include + #include +--- a/host-src/tool/syscalls.c ++++ b/host-src/tool/syscalls.c +@@ -24,6 +24,9 @@ + #include + #include + #include ++#include ++#include ++#include + #include + #include + #include -- cgit v1.2.3