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)
Tue, Dec 10, 7:00 PM
Unknown Object (File)
Oct 23 2024, 2:35 AM
Unknown Object (File)
Sep 23 2024, 6:00 PM
Unknown Object (File)
Sep 18 2024, 6:06 PM
Unknown Object (File)
Sep 8 2024, 2:21 PM
Unknown Object (File)
Sep 8 2024, 6:15 AM
Unknown Object (File)
Sep 8 2024, 3:21 AM
Unknown Object (File)
Sep 7 2024, 8:57 PM

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