summaryrefslogtreecommitdiff
path: root/src/SDCCglobl.h
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-21 16:08:26 +0200
committerXavier ASUS <xavi92psx@gmail.com>2019-10-21 16:08:26 +0200
commit9d8d485a0a3b869ad64bb745d102ab6cac0ba4a1 (patch)
tree5428e47ddf776e9b56a2000e77396996f2ae1955 /src/SDCCglobl.h
parentde2840528859860ca242f7bde0cbd90d51984cf2 (diff)
downloadsdcc-gas-9d8d485a0a3b869ad64bb745d102ab6cac0ba4a1.tar.gz
Implemented --ffunction-sections
Interrupt vector must be placed on section .vectors, according to the default linker script file. Intermediate labels must be $-terminated so they are not listed by nm.
Diffstat (limited to 'src/SDCCglobl.h')
-rw-r--r--src/SDCCglobl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h
index 89e33de..f8b41b3 100644
--- a/src/SDCCglobl.h
+++ b/src/SDCCglobl.h
@@ -329,6 +329,7 @@ struct options
bool noOptsdccInAsm; /* Do not emit .optsdcc in asm */
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. */
};
/* forward definition for variables accessed globally */