gcc 4.4 defaults to using .cfi assembler directives for debugging information, which causes unneeded .eh_frame sections to be generated. These sections are already stripped out by our linker script, so don't affect the final build, but do distort the output of "size" when run on individual .o files; the .eh_frame size is included within the size reported for .text. This makes it difficult to accurately judge the effects of source code changes upon object code size. Fix by adding -fno-dwarf2-cfi-asm to CFLAGS if we detect that this option is supported by the gcc that we are compiling with. Tested-by: Daniel Verkamp <daniel@drv.nu>tags/v0.9.8
|
|
||
134 |
|
134 |
|
135 |
|
135 |
|
136 |
|
136 |
|
|
137 |
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
137 |
|
147 |
|
138 |
|
148 |
|
139 |
|
149 |
|