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

@ -185,7 +185,7 @@ impl Serialize for RelocationEntry {
}
pub struct RelocationSection<'a> {
pub name: String,
pub name: &'a str,
pub entries: &'a Vec<'a, RelocationEntry>,
}