mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[yaml2obj] Initialize sh_addralign field for the .symtab section
llvm-svn: 241835
This commit is contained in:
parent
2f77b9cd0e
commit
901c8a500a
@ -65,12 +65,15 @@ Sections:
|
|||||||
# CHECK: Section {
|
# CHECK: Section {
|
||||||
# CHECK: Name: .symtab (25)
|
# CHECK: Name: .symtab (25)
|
||||||
# CHECK: Type: SHT_SYMTAB (0x2)
|
# CHECK: Type: SHT_SYMTAB (0x2)
|
||||||
|
# CHECK: AddressAlignment: 8
|
||||||
# CHECK: }
|
# CHECK: }
|
||||||
# CHECK: Section {
|
# CHECK: Section {
|
||||||
# CHECK: Name: .strtab (17)
|
# CHECK: Name: .strtab (17)
|
||||||
# CHECK: Type: SHT_STRTAB (0x3)
|
# CHECK: Type: SHT_STRTAB (0x3)
|
||||||
|
# CHECK: AddressAlignment: 1
|
||||||
# CHECK: }
|
# CHECK: }
|
||||||
# CHECK: Section {
|
# CHECK: Section {
|
||||||
# CHECK: Name: .shstrtab (7)
|
# CHECK: Name: .shstrtab (7)
|
||||||
# CHECK: Type: SHT_STRTAB (0x3)
|
# CHECK: Type: SHT_STRTAB (0x3)
|
||||||
|
# CHECK: AddressAlignment: 1
|
||||||
# CHECK: }
|
# CHECK: }
|
||||||
|
@ -267,6 +267,7 @@ void ELFState<ELFT>::initSymtabSectionHeader(Elf_Shdr &SHeader,
|
|||||||
// One greater than symbol table index of the last local symbol.
|
// One greater than symbol table index of the last local symbol.
|
||||||
SHeader.sh_info = Doc.Symbols.Local.size() + 1;
|
SHeader.sh_info = Doc.Symbols.Local.size() + 1;
|
||||||
SHeader.sh_entsize = sizeof(Elf_Sym);
|
SHeader.sh_entsize = sizeof(Elf_Sym);
|
||||||
|
SHeader.sh_addralign = 8;
|
||||||
|
|
||||||
std::vector<Elf_Sym> Syms;
|
std::vector<Elf_Sym> Syms;
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user