Skip to content

Commit bff76fd

Browse files
committed
Add .type and .size annotations for i686 Linux
We needed to do this for the trampolines in Julia as well. X-ref: JuliaLang/julia#40575
1 parent d6425ff commit bff76fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/trampolines/common.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
.ascii STR(-export:##I(MANGLE(name))); \
2626
.ascii " "; \
2727
.section .text
28+
#elif defined(__ELF__)
29+
#define DEBUGINFO(name) .type UNDERSCORE(MANGLE(name)),@function
30+
#define EXPORT(name) .size UNDERSCORE(MANGLE(name)), . - UNDERSCORE(MANGLE(name))
2831
#else
2932
#define DEBUGINFO(name)
3033
#define EXPORT(name)

0 commit comments

Comments
 (0)