Fix typos.
Summary: Fix a bunch of typos. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11386 llvm-svn: 242856
This commit is contained in:
@@ -1731,7 +1731,7 @@ ObjectFileELF::CreateSections(SectionList &unified_section_list)
|
||||
if (eSectionTypeOther == sect_type)
|
||||
{
|
||||
// the kalimba toolchain assumes that ELF section names are free-form. It does
|
||||
// supports linkscripts which (can) give rise to various arbitarily named
|
||||
// support linkscripts which (can) give rise to various arbitrarily named
|
||||
// sections being "Code" or "Data".
|
||||
sect_type = kalimbaSectionType(m_header, header);
|
||||
}
|
||||
@@ -2069,7 +2069,7 @@ ObjectFileELF::ParseSymbols (Symtab *symtab,
|
||||
Mangled mangled(ConstString(symbol_bare), is_mangled);
|
||||
|
||||
// Now append the suffix back to mangled and unmangled names. Only do it if the
|
||||
// demangling was sucessful (string is not empty).
|
||||
// demangling was successful (string is not empty).
|
||||
if (has_suffix)
|
||||
{
|
||||
llvm::StringRef suffix = symbol_ref.substr(version_pos);
|
||||
@@ -2221,7 +2221,7 @@ ObjectFileELF::PLTRelocationType()
|
||||
}
|
||||
|
||||
// Returns the size of the normal plt entries and the offset of the first normal plt entry. The
|
||||
// 0th entry in the plt table is ususally a resolution entry which have different size in some
|
||||
// 0th entry in the plt table is usually a resolution entry which have different size in some
|
||||
// architectures then the rest of the plt entries.
|
||||
static std::pair<uint64_t, uint64_t>
|
||||
GetPltEntrySizeAndOffset(const ELFSectionHeader* rel_hdr, const ELFSectionHeader* plt_hdr)
|
||||
@@ -2237,8 +2237,8 @@ GetPltEntrySizeAndOffset(const ELFSectionHeader* rel_hdr, const ELFSectionHeader
|
||||
{
|
||||
// The linker haven't set the plt_hdr->sh_entsize field. Try to guess the size of the plt
|
||||
// entries based on the number of entries and the size of the plt section with the
|
||||
// asumption that the size of the 0th entry is at least as big as the size of the normal
|
||||
// entries and it isn't mutch bigger then that.
|
||||
// assumption that the size of the 0th entry is at least as big as the size of the normal
|
||||
// entries and it isn't much bigger then that.
|
||||
if (plt_hdr->sh_addralign)
|
||||
plt_entsize = plt_hdr->sh_size / plt_hdr->sh_addralign / (num_relocations + 1) * plt_hdr->sh_addralign;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user