Temporary fix for large number of sections
authorCharles Crayne <chuck@thor.crayne.org>
Sat, 12 Jan 2008 01:22:19 +0000 (17:22 -0800)
committerCharles Crayne <chuck@thor.crayne.org>
Sat, 12 Jan 2008 01:22:19 +0000 (17:22 -0800)
Increase GLOBAL_TEMP_BASE TO 4096

output/outelf32.c
output/outelf64.c

index 000a96f..e5e5dce 100644 (file)
@@ -136,14 +136,13 @@ extern struct ofmt of_elf;
 #define STV_HIDDEN 2
 #define STV_PROTECTED 3
 
-#define GLOBAL_TEMP_BASE 16     /* bigger than any constant sym id */
+#define GLOBAL_TEMP_BASE 4096     /* bigger than any reasonable sym id */
 
 #define SEG_ALIGN 16            /* alignment of sections in file */
 #define SEG_ALIGN_1 (SEG_ALIGN-1)
 
 static const char align_str[SEG_ALIGN] = "";    /* ANSI will pad this with 0s */
 
-#define ELF_MAX_SECTIONS 16     /* really 10, but let's play safe */
 static struct ELF_SECTDATA {
     void *data;
     int32_t len;
index effed92..07cc7ef 100644 (file)
@@ -148,14 +148,13 @@ extern struct ofmt of_elf64;
 #define STV_HIDDEN 2
 #define STV_PROTECTED 3
 
-#define GLOBAL_TEMP_BASE 16     /* bigger than any constant sym id */
+#define GLOBAL_TEMP_BASE 4096     /* bigger than any reasonable sym id */
 
 #define SEG_ALIGN 16            /* alignment of sections in file */
 #define SEG_ALIGN_1 (SEG_ALIGN-1)
 
 static const char align_str[SEG_ALIGN] = "";    /* ANSI will pad this with 0s */
 
-#define ELF_MAX_SECTIONS 16     /* really 10, but let's play safe */
 static struct ELF_SECTDATA {
     void *data;
     int64_t len;