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)
Fri, Nov 14, 12:43 AM
Unknown Object (File)
Wed, Oct 22, 10:11 AM
Unknown Object (File)
Wed, Oct 22, 10:11 AM
Unknown Object (File)
Wed, Oct 22, 10:11 AM
Unknown Object (File)
Tue, Oct 21, 9:35 PM
Unknown Object (File)
Sep 22 2025, 7:35 AM
Unknown Object (File)
Sep 19 2025, 4:38 AM
Unknown Object (File)
Sep 19 2025, 4:12 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