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
F106056543: D24105.id69621.diff
Tue, Dec 24, 3:42 PM
Unknown Object (File)
Fri, Dec 20, 12:55 PM
Unknown Object (File)
Fri, Dec 20, 10:37 AM
Unknown Object (File)
Fri, Dec 20, 7:07 AM
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

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