mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
Temporary fix for large number of sections
Increase GLOBAL_TEMP_BASE TO 4096
This commit is contained in:
parent
b2e8379707
commit
4acfb4f44e
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user