- 08/06/2017 08:44:54 PM (4 years ago)
- 1 edited
rcc2c9e0 r15854f1 232 232 functions to preserve A2 and D2, so that GCC code generation can 233 233 use all registers. 234 235 * The hand-written assembly language code expects C function names 236 to be prefixed with an underscore. That's why we pass the 237 -fleading-underscore option to GCC. However, this breaks linking 238 with libgcc, which doesn't use leading underscores. 239 240 Currently, we work around this issue by stripping the leading 241 underscore from references to libgcc functions using objcopy. See 242 misc/rewrite.txt for the function name mapping. 243 244 Ultimately, we should fix any references to C functions in the 245 hand-written assembly language code.
Note: See TracChangeset for help on using the changeset viewer.