Commit graph

4 commits

Author SHA1 Message Date
Bobby Smiles
992db3d029 Simplify gen_asm_defines.awk 2017-11-28 03:07:16 +01:00
comex
7b6ffc26a2 Change how asm_defines works to fix Mac build.
This didn't work correctly for two reasons:
- The symbols were being marked as undefined (imported) rather than
exported.  I could fix that by adding an initializer (= {0}), but then
the binary gets huge; not sure if there's a way around that.
- Mach-O binaries don't store symbol sizes.  You can get nm to try to
calculate them with --size-sort, but I'm not sure if this will always
output the correct result.

In lieu of more complicated platform-specific fixes, I switched to an
approach that renders the value as hex, allowing the object file to be
piped directly to awk on all platforms.
2017-05-28 17:02:05 -04:00
Gillou68310
0d1db707a5 Moved main/asm_defines.c to asm_defines/asm_defines.c 2017-02-13 18:11:42 +01:00
Gillou68310
974ebd9cff Add awk script to generate asm defines 2017-02-11 19:25:10 +01:00