[llvm-dev] Clearing the BSS section

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 28 08:35:42 PDT 2015


On 8/28/2015 9:52 AM, devh8h via llvm-dev wrote:
>
> Is there a way to prevent the optimizer to assume the two variables are distinct ? Or what is the proper way to deal with link time values ?

You can use this:

@__bss_start = extern_weak externally_initialized global i32
@__bss_end = extern_weak externally_initialized global i32

-Krzysztof

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation


More information about the llvm-dev mailing list