This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
bfd cleanup fix
- To: amodra at bigpond dot net dot au
- Subject: bfd cleanup fix
- From: Christian Groessler <cpg at aladdin dot de>
- Date: 26 Oct 2001 01:01:54 +0200
- Cc: binutils at sources dot redhat dot com, chris at groessler dot org
Alan,
since your bfd cleanup (Sep-18 or so) I got strange warning messages
when using or creating object files with line number info on the
z8k-coff target.
I finally nailed it down. Assuming the patch is obvious...
regards,
chris
include/coff/ChangeLog:
2001-10-26 Christian Groessler <cpg@aladdin.de>
* external.h (GET_LINENO_LNNO): Fix usage of H_GET_32/16.
(PUT_LINENO_LNNO): Likewise with H_PUT_32/16.
include/coff/external.h:
diff -u -p -r1.3 external.h
--- external.h 2001/09/18 10:01:08 1.3
+++ external.h 2001/10/25 22:49:03
@@ -113,12 +113,12 @@ struct external_lineno
#define LINESZ (4 + L_LNNO_SIZE)
#if L_LNNO_SIZE == 4
-#define GET_LINENO_LNNO H_GET_32
-#define PUT_LINENO_LNNO H_PUT_32
+#define GET_LINENO_LNNO(abfd, ext) H_GET_32(abfd, (ext->l_lnno))
+#define PUT_LINENO_LNNO(abfd, val, ext) H_PUT_32(abfd, val, (ext->l_lnno))
#endif
#if L_LNNO_SIZE == 2
-#define GET_LINENO_LNNO H_GET_16
-#define PUT_LINENO_LNNO H_PUT_16
+#define GET_LINENO_LNNO(abfd, ext) H_GET_16(abfd, (ext->l_lnno))
+#define PUT_LINENO_LNNO(abfd, val, ext) H_PUT_16(abfd, val, (ext->l_lnno))
#endif
#endif /* not DO_NOT_DEFINE_LINENO */