From b679eaad41904e797ba27ea0c4c2be0a0ab4b830 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Tue, 22 Oct 2019 17:30:14 +0200 Subject: .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. --- src/SDCCmem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SDCCmem.h') 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 -- cgit v1.2.3