[m32c] reduce ELF_MAXPAGESIZE

DJ Delorie dj@redhat.com
Wed Aug 4 04:35:00 GMT 2010


The r8c, m16c, and m32c chips use 256-byte pages in their flash
modules.  To reduce overhead and handle certain programming
configurations, I'm reducing the ELF pagesize to match.

	* elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.

Index: elf32-m32c.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m32c.c,v
retrieving revision 1.21
diff -p -U3 -r1.21 elf32-m32c.c
--- elf32-m32c.c	27 Jun 2010 04:07:51 -0000	1.21
+++ elf32-m32c.c	4 Aug 2010 03:33:24 -0000
@@ -2010,7 +2010,7 @@ _bfd_m32c_elf_eh_frame_address_size (bfd
 #define ELF_ARCH		bfd_arch_m32c
 #define ELF_MACHINE_CODE	EM_M32C
 #define ELF_MACHINE_ALT1	EM_M32C_OLD
-#define ELF_MAXPAGESIZE		0x1000
+#define ELF_MAXPAGESIZE		0x100
 
 #if 0
 #define TARGET_BIG_SYM		bfd_elf32_m32c_vec



More information about the Binutils mailing list