Temporary fix for large number of sections

Increase GLOBAL_TEMP_BASE TO 4096
This commit is contained in:
Charles Crayne 2008-01-11 17:22:19 -08:00
parent b2e8379707
commit 4acfb4f44e
2 changed files with 2 additions and 4 deletions

View 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;

View 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;