This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Fix as dwarf2 for HC11/HC12


Hi!

This patch fixes gas to generate correct dwarf2 debug info for HC11/HC12.
We need 32-bit address to represent symbols because they may be in paged memory
(and thus require > 16-bit for them).  It was using 16-bit because the default
uses bfd_arch_bits_per_address () which is 16-bit.

Committed on mainline and 2_14 branch.

Stephane

2003-07-24 Stephane Carrez <stcarrez@nerim.fr>

	* config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
	debugging symbols so that we handle page memory correctly.
Index: config/tc-m68hc11.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68hc11.h,v
retrieving revision 1.11
diff -u -p -r1.11 tc-m68hc11.h
--- config/tc-m68hc11.h	1 Dec 2002 11:02:10 -0000	1.11
+++ config/tc-m68hc11.h	24 Jul 2003 20:50:35 -0000
@@ -83,6 +83,10 @@ extern int m68hc11_parse_long_option PAR
 
 #define DWARF2_LINE_MIN_INSN_LENGTH 1
 
+/* Use 32-bit address to represent a symbol address so that we can
+   represent them with their page number.  */
+#define DWARF2_ADDR_SIZE(bfd) 4
+
 /* We don't need to handle .word strangely.  */
 #define WORKING_DOT_WORD
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]