Various build fixes.
[mingw-build.git] / binutils1.patch
diff --git a/binutils1.patch b/binutils1.patch
new file mode 100644 (file)
index 0000000..9f1c448
--- /dev/null
@@ -0,0 +1,49 @@
+A patch from bug #752071 to fix build already sent to upstream.
+--- a/bfd/bfd-in.h
++++ b/bfd/bfd-in.h
+@@ -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);
+--- a/bfd/bfd-in2.h
++++ b/bfd/bfd-in2.h
+@@ -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);