mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +00: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: Name: .symtab (25)
|
||||
# CHECK: Type: SHT_SYMTAB (0x2)
|
||||
# CHECK: AddressAlignment: 8
|
||||
# CHECK: }
|
||||
# CHECK: Section {
|
||||
# CHECK: Name: .strtab (17)
|
||||
# CHECK: Type: SHT_STRTAB (0x3)
|
||||
# CHECK: AddressAlignment: 1
|
||||
# CHECK: }
|
||||
# CHECK: Section {
|
||||
# CHECK: Name: .shstrtab (7)
|
||||
# CHECK: Type: SHT_STRTAB (0x3)
|
||||
# CHECK: AddressAlignment: 1
|
||||
# CHECK: }
|
||||
|
@ -267,6 +267,7 @@ void ELFState<ELFT>::initSymtabSectionHeader(Elf_Shdr &SHeader,
|
||||
// One greater than symbol table index of the last local symbol.
|
||||
SHeader.sh_info = Doc.Symbols.Local.size() + 1;
|
||||
SHeader.sh_entsize = sizeof(Elf_Sym);
|
||||
SHeader.sh_addralign = 8;
|
||||
|
||||
std::vector<Elf_Sym> Syms;
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user