diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-22 17:30:14 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-22 17:31:19 +0200 |
| commit | b679eaad41904e797ba27ea0c4c2be0a0ab4b830 (patch) | |
| tree | 9854206fb09a7981d19f9877ea232b281531224c /src/SDCCmem.h | |
| parent | 5a0c2910df62b99fee8baec1f4d846217cd9a054 (diff) | |
| download | sdcc-gas-b679eaad41904e797ba27ea0c4c2be0a0ab4b830.tar.gz | |
.data symbols are now allocated correctly
.data only needs a label with the smybol name and .byte/.word
directives defining it. Therefore, INITIALIZED_NAME is ignored
since no allocation must be done from emitRegularMap() for .data.
Diffstat (limited to 'src/SDCCmem.h')
| -rw-r--r-- | src/SDCCmem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SDCCmem.h b/src/SDCCmem.h index 7ee2728..b706da7 100644 --- a/src/SDCCmem.h +++ b/src/SDCCmem.h @@ -50,8 +50,8 @@ extern FILE *junkFile; #define ISTACK_NAME port->mem.istack_name #define CODE_NAME (options.gasOutput ? ".text" : port->mem.code_name) #define DATA_NAME (options.gasOutput ? ".bss" : port->mem.data_name) -#define INITIALIZED_NAME (options.gasOutput ? ".data" : port->mem.data_name) -#define INITIALIZER_NAME (options.gasOutput ? ".data.rodata" : port->mem.data_name) +#define INITIALIZED_NAME port->mem.data_name +#define INITIALIZER_NAME (options.gasOutput ? ".data" : port->mem.data_name) #define IDATA_NAME port->mem.idata_name #define PDATA_NAME port->mem.pdata_name #define XDATA_NAME port->mem.xdata_name |
