--keep-global-symbol and --globalize-symbol don't make sense for undefined symbols, so it should be ignored for those symbols. This matches GNU objcopy behavior.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
My feeling is that a single separate test is not the right way to test this. I think it makes more sense for an undefined symbol to be added to globalize.test and --keep-global-symbols.test. What do you think?
test/tools/llvm-objcopy/globalize-undefined-sym.test | ||
---|---|---|
11 ↗ | (On Diff #171201) | Are you sure this is Foo? That's a symbol that doesn't even exist. I assume you meant it to be Weak or Global? |
test/tools/llvm-objcopy/globalize-undefined-sym.test | ||
---|---|---|
11 ↗ | (On Diff #171201) | Foo is intentional, sorry for not explaining in a test comment why -- fixed. |