MIPS ABI states that .sbss and .sdata sections must have SHF_MIPS_GPREL flag. See Figure 4–7 on page 69 in the following document: ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
803 ↗ | (On Diff #43518) | Probably I am not understanding this right, this flag is in SHF_MASKPROC bit fields. Shouldn't the flag printer (for instance in section printer) be checking processor printing the section flags ? Adding it here makes any processor that may use the same field not be able to use the enum string other than SHF_MIPS_GPREL. |
tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
803 ↗ | (On Diff #43518) | Good point, thanks. I will fix it. |
Comment Actions
I implemented support for target specific ELF section flags in a separate commit r258334. Now this patch contains MIPS specific code only.