Package: sdcc Version: sdcc-3.4.0+dfsg Severity: important Tags: patch This patch add support with mips64, tested on mips64el device. Please consider it.
Regards, Sphinx Jiang
Index: sdcc-3.4.0+dfsg/support/sdbinutils/bfd/bfd-in.h =================================================================== --- sdcc-3.4.0+dfsg.orig/support/sdbinutils/bfd/bfd-in.h 2012-11-05 21:26:25.000000000 +0800 +++ sdcc-3.4.0+dfsg/support/sdbinutils/bfd/bfd-in.h 2014-06-19 16:40:09.274149785 +0800 @@ -294,9 +294,9 @@ #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0) -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE) -#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE) -#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) +#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE)) +#define bfd_set_section_alignment(bfd, ptr, val) ((ptr)->alignment_power = (val)) +#define bfd_set_section_userdata(bfd, ptr, val) ((ptr)->userdata = (val)) /* Find the address one past the end of SEC. */ #define bfd_get_section_limit(bfd, sec) \ (((bfd)->direction != write_direction && (sec)->rawsize != 0 \ @@ -519,7 +519,7 @@ #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char) -#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE) +#define bfd_set_cacheable(abfd,bool) ((abfd)->cacheable = bool) extern bfd_boolean bfd_cache_close (bfd *abfd); Index: sdcc-3.4.0+dfsg/support/sdbinutils/bfd/bfd-in2.h =================================================================== --- sdcc-3.4.0+dfsg.orig/support/sdbinutils/bfd/bfd-in2.h 2012-11-05 21:26:25.000000000 +0800 +++ sdcc-3.4.0+dfsg/support/sdbinutils/bfd/bfd-in2.h 2014-06-19 16:42:09.110092421 +0800 @@ -301,9 +301,9 @@ #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0) -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE) -#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE) -#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) +#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE)) +#define bfd_set_section_alignment(bfd, ptr, val) ((ptr)->alignment_power = (val)) +#define bfd_set_section_userdata(bfd, ptr, val) ((ptr)->userdata = (val)) /* Find the address one past the end of SEC. */ #define bfd_get_section_limit(bfd, sec) \ (((bfd)->direction != write_direction && (sec)->rawsize != 0 \ @@ -526,7 +526,7 @@ #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char) -#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE) +#define bfd_set_cacheable(abfd,bool) ((abfd)->cacheable = bool) extern bfd_boolean bfd_cache_close (bfd *abfd);