summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorCharles Crayne <chuck@thor.crayne.org>2008-01-11 17:22:19 -0800
committerCharles Crayne <chuck@thor.crayne.org>2008-01-11 17:22:19 -0800
commit4acfb4f44ebd79c7ef9e8be0564e5ba9f9b99511 (patch)
treea6a0b95c34f9394b18d40ea95f3179faed3108be /output
parentb2e8379707d98715c91adc47f69b4dcfcf39b23e (diff)
downloadnasm-4acfb4f44ebd79c7ef9e8be0564e5ba9f9b99511.tar.gz
nasm-4acfb4f44ebd79c7ef9e8be0564e5ba9f9b99511.tar.bz2
nasm-4acfb4f44ebd79c7ef9e8be0564e5ba9f9b99511.zip
Temporary fix for large number of sections
Increase GLOBAL_TEMP_BASE TO 4096
Diffstat (limited to 'output')
-rw-r--r--output/outelf32.c3
-rw-r--r--output/outelf64.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/output/outelf32.c b/output/outelf32.c
index 000a96f..e5e5dce 100644
--- a/output/outelf32.c
+++ b/output/outelf32.c
@@ -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;
diff --git a/output/outelf64.c b/output/outelf64.c
index effed92..07cc7ef 100644
--- a/output/outelf64.c
+++ b/output/outelf64.c
@@ -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;