gas patch for non-octet processors

2012-06-29 Thread jnielsen
The attached patches correct an issue that exists in gas. The problem is general but only manifests itself when OCTETS_PER_BYTE > 1. I have found the problem in binutils 2.22 in connection with TI C4x (i.e. ./configure --target=c4x-coff). Function frag_offset_fixed_p in frags.[ch] returns an of

ld patch to prevent uninitialized data in TI COFF output

2008-12-06 Thread jnielsen
The attached patches correct an issue that exists in ld when the object code format is TI COFF. The problem is that struct external_scnhdr in ti.h define two members, s_reserved and s_page, which are not always set before the section header is written to the output. The output file in TI COFF w