By default, symbols aren't visible outside of the module that defines
them. To make them visible, they must be exported. The easiest way to do
that is to embed an -export:symname directive into the object file.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
src/assembly.h | ||
---|---|---|
76–78 ↗ | (On Diff #163414) | Maybe .pushsection / .popsection is better than assuming you were in .text. |
src/assembly.h | ||
---|---|---|
76–78 ↗ | (On Diff #163414) | I initially wanted to do that, but those directives aren't supported by COFF. Neither, by the way, is .previous. Perhaps this needs to be fixed in LLVM. |
Comment Actions
lgtm
src/assembly.h | ||
---|---|---|
76–78 ↗ | (On Diff #163414) | Huh, I guess neither does gas. .text is fine then. I'll file a bug to implement those directives for COFF. They're pretty handy, especially for an object file format that uses comdat sections so frequently. |