rename/merge functions to match rust side more
This commit is contained in:
parent
bbe4000468
commit
63dfecdbf5
7 changed files with 165 additions and 280 deletions
|
@ -63,11 +63,19 @@ out/example_unstripped: dependencies main.c
|
|||
$(CCFLAGS) \
|
||||
-o out/example_unstripped
|
||||
out/example: out/example_unstripped
|
||||
strip -s -R .comment -R .gnu.version --strip-unneeded out/example_unstripped -o out/example
|
||||
#strip -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag
|
||||
strip -s --strip-unneeded \
|
||||
-R .comment -R .gnu.version -R .comment -R .note -R .note.gnu.build-id -R .note.ABI-tag \
|
||||
out/example_unstripped \
|
||||
-o out/example
|
||||
|
||||
dependencies: FORCE
|
||||
mkdir -p include || true
|
||||
# generate servicepoint header and binary to link against
|
||||
${CARGO} rustc $(CARGOFLAGS) -- $(RUSTFLAGS)
|
||||
|
||||
analyze-size: out/example_unstripped
|
||||
nm --print-size --size-sort --reverse-sort --radix=d --demangle out/example_unstripped \
|
||||
| awk '{size=$$2+0; print size "\t" $$4}' \
|
||||
| less
|
||||
|
||||
FORCE: ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue