diff options
author | Charles Crayne <chuck@thor.crayne.org> | 2008-01-11 17:22:19 -0800 |
---|---|---|
committer | Charles Crayne <chuck@thor.crayne.org> | 2008-01-11 17:22:19 -0800 |
commit | 4acfb4f44ebd79c7ef9e8be0564e5ba9f9b99511 (patch) | |
tree | a6a0b95c34f9394b18d40ea95f3179faed3108be /output | |
parent | b2e8379707d98715c91adc47f69b4dcfcf39b23e (diff) | |
download | nasm-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.c | 3 | ||||
-rw-r--r-- | output/outelf64.c | 3 |
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; |