mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +00:00
Reset the name of the "current bss segment" before writing bss variables into the output Assembly file.
Then, cc65 can notice a single "#pragma bss-name()" at the beginning of the variables list.
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
/* common */
|
/* common */
|
||||||
#include "debugflag.h"
|
#include "debugflag.h"
|
||||||
|
#include "segnames.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
#include "xsprintf.h"
|
#include "xsprintf.h"
|
||||||
@@ -419,6 +420,11 @@ void FinishCompile (void)
|
|||||||
{
|
{
|
||||||
SymEntry* Entry;
|
SymEntry* Entry;
|
||||||
|
|
||||||
|
/* Reset the BSS segment name to its default; so that the below strcmp()
|
||||||
|
** will work as expected, at the beginning of the list of variables
|
||||||
|
*/
|
||||||
|
SetSegName (SEG_BSS, SEGNAME_BSS);
|
||||||
|
|
||||||
/* Walk over all global symbols:
|
/* Walk over all global symbols:
|
||||||
** - for functions, do clean-up and optimizations
|
** - for functions, do clean-up and optimizations
|
||||||
** - generate code for uninitialized global variables
|
** - generate code for uninitialized global variables
|
||||||
|
Reference in New Issue
Block a user