[llvm] r226217 - [Object] Add SF_Exported flag. This flag will be set on all symbols that would

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jan 19 12:54:31 PST 2015


> +    // A symbol is exported if its binding is either GLOBAL or WEAK, and its
> +    // visibility is either DEFAULT or PROTECTED. All other symbols are not
> +    // exported.
> +    if ((Binding == ELF::STB_GLOBAL || Binding == ELF::STB_WEAK) &&
> +        (Visibility == ELF::STV_DEFAULT && Visibility == ELF::STV_PROTECTED))

The last && should be a ||. The visibility cannot be both default and
protected :-)

Cheers,
Rafael



More information about the llvm-commits mailing list