[lld] r319169 - [ELF] Read ARM BuildAttributes section to determine supported features.

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 10:19:02 PST 2017


Ok thanks for spotting it, I'll put one in. It looks like the value
0x70000003U doesn't overlap with any other processor specific section
type at the moment.

Peter

On 28 November 2017 at 18:15, Rafael Avila de Espindola
<rafael.espindola at gmail.com> wrote:
> Peter Smith via llvm-commits <llvm-commits at lists.llvm.org> writes:
>
>>  template <class ELFT>
>>  InputSectionBase *ObjFile<ELFT>::getRelocTarget(const Elf_Shdr &Sec) {
>>    uint32_t Idx = Sec.sh_info;
>> @@ -426,16 +470,20 @@ InputSectionBase *ObjFile<ELFT>::createI
>>    StringRef Name = getSectionName(Sec);
>>
>>    switch (Sec.sh_type) {
>> -  case SHT_ARM_ATTRIBUTES:
>> -    // FIXME: ARM meta-data section. Retain the first attribute section
>> -    // we see. The eglibc ARM dynamic loaders require the presence of an
>> -    // attribute section for dlopen to work.
>> -    // In a full implementation we would merge all attribute sections.
>> +  case SHT_ARM_ATTRIBUTES: {
>
> I just noticed this is missing a "Config->EMachine == EM_ARM" check.
>
> Cheers,
> Rafael


More information about the llvm-commits mailing list