|
From: <ba...@us...> - 2006-09-18 04:16:33
|
Revision: 376
http://svn.sourceforge.net/cadcdev/?rev=376&view=rev
Author: bardtx
Date: 2006-09-17 21:16:29 -0700 (Sun, 17 Sep 2006)
Log Message:
-----------
dcload-ip: Apply Christian's bfd fix, and make objcopy use -R .stack
Modified Paths:
--------------
dcload/dcload-ip/host-src/tool/dc-tool.c
dcload/dcload-ip/target-src/dcload/Makefile
Modified: dcload/dcload-ip/host-src/tool/dc-tool.c
===================================================================
--- dcload/dcload-ip/host-src/tool/dc-tool.c 2006-09-18 01:10:18 UTC (rev 375)
+++ dcload/dcload-ip/host-src/tool/dc-tool.c 2006-09-18 04:16:29 UTC (rev 376)
@@ -446,13 +446,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->size);
- if (section->size) {
- size += section->size;
- inbuf = malloc(section->size);
- bfd_get_section_contents(somebfd, section, inbuf, 0, section->size);
+ 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);
- send_data(inbuf, section->lma, section->size);
+ send_data(inbuf, section->lma, section->_raw_size);
free(inbuf);
}
Modified: dcload/dcload-ip/target-src/dcload/Makefile
===================================================================
--- dcload/dcload-ip/target-src/dcload/Makefile 2006-09-18 01:10:18 UTC (rev 375)
+++ dcload/dcload-ip/target-src/dcload/Makefile 2006-09-18 04:16:29 UTC (rev 376)
@@ -16,7 +16,7 @@
%.o : %.S
$(CC) $(CFLAGS) $(INCLUDE) -o $@ -c $<
%.bin: %
- $(OBJCOPY) -O binary $< $@
+ $(OBJCOPY) -R .stack -O binary $< $@
all: dcload.bin exception.bin
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|