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)
Wed, Apr 2, 5:29 PM
Unknown Object (File)
Thu, Mar 13, 1:56 PM
Unknown Object (File)
Feb 28 2025, 8:28 PM
Unknown Object (File)
Feb 25 2025, 8:40 PM
Unknown Object (File)
Feb 23 2025, 3:54 AM
Unknown Object (File)
Feb 23 2025, 1:57 AM
Unknown Object (File)
Feb 21 2025, 9:19 AM
Unknown Object (File)
Feb 20 2025, 3:51 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