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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Mar 25 17:14:11 PDT 2014


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 <
> SHN_HEXAGON_SCOMMON_8 ?
>
> 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.

Cheers,
Rafael



More information about the llvm-commits mailing list