[patch] PIC support for X86-64

Bo Thorsen bo@suse.de
Mon Jan 22 04:17:00 GMT 2001


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic.patch.gz
Type: application/x-gzip
Size: 13242 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20010122/31c76719/attachment.bin>


More information about the Binutils mailing list