mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibELF: Use StringView literal syntax to build section names.
This commit is contained in:
parent
31e1b08e15
commit
141e6724d1
Notes:
sideshowbarker
2024-07-18 21:57:35 +09:00
Author: https://github.com/bgianfo
Commit: 141e6724d1
Pull-request: https://github.com/SerenityOS/serenity/pull/5503
1 changed files with 2 additions and 3 deletions
|
@ -219,9 +219,8 @@ public:
|
|||
|
||||
HashSection hash_section() const
|
||||
{
|
||||
auto section_name = m_hash_type == HashType::SYSV
|
||||
? StringView { "DT_HASH", 7 }
|
||||
: StringView { "DT_GNU_HASH", 11 };
|
||||
auto section_name = m_hash_type == HashType::SYSV ? "DT_HASH"sv : "DT_GNU_HASH"sv;
|
||||
|
||||
return HashSection(Section(*this, m_hash_table_offset, 0, 0, section_name), m_hash_type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue