diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-28 02:03:38 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-28 02:03:38 +0100 |
| commit | 3378ab8f236f387978fa4cc75bd5fca7021e8a13 (patch) | |
| tree | 84abfdab6de3f84979f4db03837974a87ef85236 /src/SDCCglobl.h | |
| parent | e801690e4fc177f063e2ae854b3f2a69bd1b9ba0 (diff) | |
| download | sdcc-gas-3378ab8f236f387978fa4cc75bd5fca7021e8a13.tar.gz | |
First implementation for --data-sections
OTOH, section names included in "options" were being assigned *before*
parsing command line arguments. These arose some issues so I have created
a post-parsing function.
Diffstat (limited to 'src/SDCCglobl.h')
| -rw-r--r-- | src/SDCCglobl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h index f8b41b3..78a28e0 100644 --- a/src/SDCCglobl.h +++ b/src/SDCCglobl.h @@ -330,6 +330,7 @@ struct options bool oldralloc; /* Use old register allocator */ int gasOutput; /* Output assembly in GNU as format */ int function_sections; /* Place each function into a separate section. Useful for link-time dead code elimination. */ + int data_sections; /* Place each static variable into a separate section. Useful for link-time dead code elimination. */ }; /* forward definition for variables accessed globally */ |
