/freebsd/sys/riscv/riscv/ |
H A D | elf_machdep.c | diff 3069380898fb5454d1dad52bf012b3590c979b08 Wed Mar 18 03:58:18 CET 2020 Brandon Bergren <bdragon@FreeBSD.org> [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic().
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.
This fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.
Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24105
|
/freebsd/sys/arm64/arm64/ |
H A D | elf_machdep.c | diff 3069380898fb5454d1dad52bf012b3590c979b08 Wed Mar 18 03:58:18 CET 2020 Brandon Bergren <bdragon@FreeBSD.org> [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic().
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.
This fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.
Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24105
|
/freebsd/sys/powerpc/powerpc/ |
H A D | elf64_machdep.c | diff 3069380898fb5454d1dad52bf012b3590c979b08 Wed Mar 18 03:58:18 CET 2020 Brandon Bergren <bdragon@FreeBSD.org> [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic().
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.
This fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.
Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24105
|
H A D | elf32_machdep.c | diff 3069380898fb5454d1dad52bf012b3590c979b08 Wed Mar 18 03:58:18 CET 2020 Brandon Bergren <bdragon@FreeBSD.org> [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic().
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.
This fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.
Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24105
|
/freebsd/sys/arm/arm/ |
H A D | elf_machdep.c | diff 3069380898fb5454d1dad52bf012b3590c979b08 Wed Mar 18 03:58:18 CET 2020 Brandon Bergren <bdragon@FreeBSD.org> [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic().
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.
This fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.
Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24105
|
/freebsd/sys/i386/i386/ |
H A D | elf_machdep.c | diff 3069380898fb5454d1dad52bf012b3590c979b08 Wed Mar 18 03:58:18 CET 2020 Brandon Bergren <bdragon@FreeBSD.org> [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic().
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.
This fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.
Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24105
|
/freebsd/sys/amd64/amd64/ |
H A D | elf_machdep.c | diff 3069380898fb5454d1dad52bf012b3590c979b08 Wed Mar 18 03:58:18 CET 2020 Brandon Bergren <bdragon@FreeBSD.org> [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic().
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.
This fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.
Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24105
|
/freebsd/sys/sys/ |
H A D | linker.h | diff 3069380898fb5454d1dad52bf012b3590c979b08 Wed Mar 18 03:58:18 CET 2020 Brandon Bergren <bdragon@FreeBSD.org> [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic().
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.
This fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.
Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24105
|
/freebsd/sys/kern/ |
H A D | link_elf.c | diff 3069380898fb5454d1dad52bf012b3590c979b08 Wed Mar 18 03:58:18 CET 2020 Brandon Bergren <bdragon@FreeBSD.org> [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic().
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.
This fixes a crash on RB800 where it was trying to write to an unmapped address when updating the GOT.
Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24105
|