diff options
-rw-r--r-- | ld/config.h | 2 | ||||
-rwxr-xr-x | ld/h8300hds.sc | 29 |
2 files changed, 17 insertions, 14 deletions
diff --git a/ld/config.h b/ld/config.h index 98c5cf3..838276b 100644 --- a/ld/config.h +++ b/ld/config.h @@ -53,7 +53,7 @@ #define GLD29K_TARGET "coff-a29k-big" #define GLDI386AOUT_TARGET "a.out-i386" #define GLDNEWS_TARGET "a.out-newsos3" -#define H8300HDS_TARGET "ieee" +#define H8300HDS_TARGET "coff-h8300" #define EBMON29K_TARGET "coff-a29k-big" diff --git a/ld/h8300hds.sc b/ld/h8300hds.sc index 9a395dd..d0a139b 100755 --- a/ld/h8300hds.sc +++ b/ld/h8300hds.sc @@ -1,19 +1,22 @@ -OUTPUT_FORMAT("ieee") +OUTPUT_FORMAT("coff-h8300") OUTPUT_ARCH(h8300) SECTIONS { - .code 40: - { - - *(.code) - *(.strings) - } - .bss . : - { - *(.bss) - [COMMON] - _end = .; - } +.text 0: + { + *(.text) + *(.strings) + } +.data . : + { + *(.data) + } +.bss . : + { + *(.bss) + [COMMON] + _end = .; + } } |