Nechda
Nechda
> A diagnostic message [around this line](https://github.com/llvm/llvm-project/blob/1aceee7bb6c4423da73f71aff2004493bdf620d1/llvm/lib/Transforms/IPO/SampleProfile.cpp#L1716) is more user-visible when overflow happens in a real build. I agree that the diagnostic message would be more useful in this case....
Fixed in https://github.com/llvm/llvm-project/pull/90217
cc @AMS21 @PiotrZSL
> if we can't resolve an expression we return Unknown and should just ignore it Yes, according to your previous commit, this logic is clear. https://github.com/llvm/llvm-project/pull/68359/files#diff-fb42ca512b87267a21b8a5676608906e18453409a69965aa23840415d27bb9c3R154-R160 But in my example,...
> So I would argue that the check does work as expected or am I missing something here? I understand why the warning is triggered in my example, but is...
Hm, should we change the section-finding policy for the `MH_OBJECT` file type? It seems that the sections know its segment. When I apply such patch: ```diff --- a/llvm/lib/ObjCopy/MachO/MachOObjcopy.cpp +++ b/llvm/lib/ObjCopy/MachO/MachOObjcopy.cpp...
> What is the symbol of the innter implementation of std::thread? Actually, it's not just one symbol, it's actually two: - `_ZNSt6thread15_M_start_threadESt10unique_ptrINS_6_StateESt14default_deleteIS1_EEPFvvE` or `std::thread::_M_start_thread(std::unique_ptr, void (*)())` - `_ZNSt6thread6_StateD2Ev` or `std::thread::_State::~_State()`...
Thank you for the information about the `-I binary` option in `llvm-objcopy`! In the past, I used a sequence of commands such as `--add-section` and `--add-symbol` to achieve the same...
I am currently working on creating a PR with a fix, but I am having some difficulty figuring out how to create a minimal test case that can reproduce the...
@jh7370 Thank you for your help in providing a simple test case! To reproduce the error in this example, I build llvm-objcopy with address sanitizer. If I run llvm-objcopy without...