This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] PIC support for X86-64
- To: binutils at sources dot redhat dot com
- Subject: [patch] PIC support for X86-64
- From: Bo Thorsen <bo at suse dot de>
- Date: Mon, 22 Jan 2001 13:16:52 +0100 (CET)
This patch adds PIC support to the X86-64. It is not much tested since
this is not yet possible. It can create and link PIC code and that will
have to do until glibc gets PIC support so we can start loading it.
There are a few FIXME's in the code and I would love to have someone going
over the patch and commenting on it.
This is the ChangeLog entry:
2001-01-22 Bo Thorsen <bo@suse.de>
* elf64-x86-64.c: Added PIC support for X86-64.
(elf64_x86_64_link_hash_newfunc): Function added.
(elf64_x86_64_link_hash_table_create): Likewise.
(elf64_x86_64_check_relocs): Likewise.
(elf64_x86_64_gc_mark_hook): Likewise.
(elf64_x86_64_gc_sweep_hook): Likewise.
(elf64_x86_64_adjust_dynamic_symbol): Likewise.
(elf64_x86_64_size_dynamic_sections): Likewise.
(elf64_x86_64_discard_copies): Likewise.
(elf64_x86_64_finish_dynamic_symbol): Likewise.
(elf64_x86_64_finish_dynamic_sections): Likewise.
(elf64_x86_64_relocate_section): Add relocation of PIC sections.
The patch is gzipped and attached because of it's size.
Can this be commited?
Bo.
--
Bo Thorsen | Lahnsgade 31, st.
Free software developer | 5000 Odense C
SuSE Labs | Denmark
pic patch