[PATCH] D55817: [ELF][ARM] Process ARM build attributes of dynamic libraries.

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 18 06:13:31 PST 2018


peter.smith added a comment.

Unless we have evidence that many users are making the mistake of linking against incompatible shared objects, my personal preference is that it is better to follow ld.bfd and ignore. I think most toolchains and distributions make this mistake hard to do by accident.

If we do have evidence that this is a problem, or others feel strongly about it, then my personal preference is a warning. For example a function in a shared library might have uses hard-float in its BuildAttributes but no floating-point types in its interface so it is callable from both a hard-float and soft-float ABI executable. This is in theory true of relocatable objects as well but the interfaces to shared libraries tend to be narrower and more feasible to control.


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55817/new/

https://reviews.llvm.org/D55817





More information about the llvm-commits mailing list