public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH]: Fix as dwarf2 for HC11/HC12
@ 2003-07-24 20:59 Stephane Carrez
  0 siblings, 0 replies; only message in thread
From: Stephane Carrez @ 2003-07-24 20:59 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 517 bytes --]

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.

[-- Attachment #2: tc-m68hc11.h.diffs --]
[-- Type: text/plain, Size: 636 bytes --]

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
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-24 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-24 20:59 [PATCH]: Fix as dwarf2 for HC11/HC12 Stephane Carrez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).