[PATCH] D17854: add .alt_entry assembly directive for Mach-O

Bob Wilson via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 12:20:10 PST 2016


bob.wilson added a comment.

The object files have a new SF_AltEntry flag to distinguish symbols that do not start a new atom. ld64 has had support for that for a while now.

I suppose we could narrow the check for a binary expression to check for a non-zero offset. I'm not sure it is necessary, though. If the offset is zero, the linker doesn't need to know whether it is a new atom or an alternate entry. Is there a particular case that you're concerned about there?

The bugs you cite are definitely related. It seems to me like they are at least in part due to the lack of this feature.

You're right about the need for a test of the object files. I'll see if I can get something.


http://reviews.llvm.org/D17854





More information about the llvm-commits mailing list