mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
LibELF: Use StringView instead of "const char*" in dynamic linker code
There's no reason to use C strings more than absolutely necessary.
This commit is contained in:
parent
2c3f284b06
commit
0c0127dc3f
6 changed files with 36 additions and 41 deletions
|
@ -34,7 +34,7 @@ namespace ELF {
|
|||
|
||||
class DynamicLinker {
|
||||
public:
|
||||
static Optional<DynamicObject::SymbolLookupResult> lookup_global_symbol(const char* symbol);
|
||||
static Optional<DynamicObject::SymbolLookupResult> lookup_global_symbol(const StringView& symbol);
|
||||
[[noreturn]] static void linker_main(String&& main_program_name, int fd, bool is_secure, int argc, char** argv, char** envp);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue