This is the mail archive of the 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]

Cannot create shared library on sh-elf

Without this patch, when I try to create a shared library on sh-elf,
ld tries to place .text (or was it .data; I no longer recall, I wrote
this patch some time ago, then forgot about it) and .rodata in
different segments, but fails because it didn't allocate enough
headers.  Ok to install?

Index: bfd/ChangeLog
from  Alexandre Oliva  <>

	* elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match

Index: bfd/elf32-sh.c
RCS file: /cvs/src/src/bfd/elf32-sh.c,v
retrieving revision 1.19
diff -u -p -r1.19 elf32-sh.c
--- bfd/elf32-sh.c 2000/09/14 04:59:14 1.19
+++ bfd/elf32-sh.c 2000/09/16 07:59:15
@@ -4295,7 +4295,7 @@ sh_elf_finish_dynamic_sections (output_b
 #define TARGET_LITTLE_NAME	"elf32-shl"
 #define ELF_ARCH		bfd_arch_sh
-#define ELF_MAXPAGESIZE		0x1
+#define ELF_MAXPAGESIZE		128
 #define elf_symbol_leading_char '_'
 #endif /* ELF_ARCH */

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

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