[llvm] r204769 - Create .symtab_shndxr only when needed.

Shankar Easwaran shankare at codeaurora.org
Tue Mar 25 17:19:16 PDT 2014

On 3/25/2014 7:14 PM, Rafael EspĂ­ndola wrote:
> On 25 March 2014 20:02, Shankar Easwaran <shankare at codeaurora.org> wrote:
>> Hi Rafael,
>> Does this endup creating a .symtab_shnxdr section for hexagon common
>> symbols, whose section index is > SHN_HEXAGON_SCOMMON and <
>> Whats the purpose of this section ?
> Are they marked common? If so, it should not. This section exists
> because regular section references only work if the section index is <
> SHN_LORESERVE (0xff00). For references pointing to sections with
> higher indexes, the ELF spec says that the reference should use
> SHN_XINDEX (0xffff) and put the actual index as a 32 bit number in
> .symtab_shndxr.
Yes, they get marked as commons. They represent small commons which live 
in a quick data section in the final image.
SHN_LOPROC is the start of processor specific indices (special indices) 


Shankar Easwaran

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

More information about the llvm-commits mailing list