Page MenuHomeFreeBSD

[PPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic
ClosedPublic

Authored by bdragon on Mar 17 2020, 10:10 PM.
Referenced Files
Unknown Object (File)
Mon, Mar 18, 12:20 PM
Unknown Object (File)
Sep 19 2023, 11:16 AM
Unknown Object (File)
Sep 7 2023, 9:19 AM
Unknown Object (File)
Sep 7 2023, 9:17 AM
Unknown Object (File)
Sep 7 2023, 9:13 AM
Unknown Object (File)
Sep 1 2023, 8:36 PM
Unknown Object (File)
Jun 28 2023, 4:49 AM
Unknown Object (File)
Jun 28 2023, 4:49 AM

Details

Summary

When I implemented MD DYNAMIC parsing, I was originally passing a linker_file_t so that the MD code could relocate pointers.

However, it turns out this isn't even filled in until later, so it was always 0.

Just pass the load base (ef->address) directly, as that's really the only thing we were interested in in the first place.

Fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable