Change custom section names to string slice

We will never need to create these names dynamically.
e.g. "reloc.CODE", "reloc.DATA", and "linking" will all
come from specific places in our backend code.
It's a different story for function names etc.
This commit is contained in:
Brian Carroll 2021-10-30 09:26:40 +01:00
parent 2da2e51895
commit b541802819
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ pub fn build_module_help<'a>(
// Code relocations
let code_reloc_section = RelocationSection {
name: "reloc.CODE".to_string(),
name: "reloc.CODE",
entries: &backend.code_relocations,
};