mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-25 07:08:13 -07:00
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>
23 lines
836 B
Diff
23 lines
836 B
Diff
--- 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);
|
|
}
|