This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch for bfd/coff64-rs6000.c
- To: <binutils at sourceware dot cygnus dot com>
- Subject: Patch for bfd/coff64-rs6000.c
- From: "Scott Thomason" <SThomaso at hii dot com>
- Date: Fri, 16 Mar 2001 10:47:15 -0600
The following patch is necessary to correct syntax errors in bfd/coff64-rs6000.c from the 2001-03-15 cvs source:
--- bfd/coff64-rs6000.c.orig Fri Mar 16 10:37:12 2001
+++ bfd/coff64-rs6000.c Fri Mar 16 10:37:50 2001
@@ -141,8 +141,8 @@
struct internal_syment *in = (struct internal_syment *)in1;
in->_n._n_n._n_zeroes = 0;
- in->_n._n_n._n_offset = bfd_h_get_32(abfd, (bfd_byte *) ext->e_offset);
- in->n_value = bfd_h_get_64(abfd, (bfd_byte *) ext->e.e_value);
+ in->_n._n_n._n_offset = bfd_h_get_32(abfd, (bfd_byte *) ext->e.e.e_offset);
+ in->n_value = bfd_h_get_64(abfd, (bfd_byte *) ext->e_value);
in->n_scnum = bfd_h_get_16(abfd, (bfd_byte *) ext->e_scnum);
in->n_type = bfd_h_get_16(abfd, (bfd_byte *) ext->e_type);
in->n_sclass = bfd_h_get_8(abfd, ext->e_sclass);
@@ -158,8 +158,8 @@
struct internal_syment *in = (struct internal_syment *)inp;
SYMENT *ext =(SYMENT *)extp;
- bfd_h_put_32(abfd, in->_n._n_n._n_offset, (bfd_byte *) ext->e_offset);
- bfd_h_put_64(abfd, in->n_value , (bfd_byte *) ext->e.e_value);
+ bfd_h_put_32(abfd, in->_n._n_n._n_offset, (bfd_byte *) ext->e.e.e_offset);
+ bfd_h_put_64(abfd, in->n_value , (bfd_byte *) ext->e_value);
bfd_h_put_16(abfd, in->n_scnum , (bfd_byte *) ext->e_scnum);
bfd_h_put_16(abfd, in->n_type , (bfd_byte *) ext->e_type);
bfd_h_put_8(abfd, in->n_sclass , ext->e_sclass);
Let me know if you need more testing or info.
---scott thomason