elf64-alpha.c (94544) | elf64-alpha.c (99465) |
---|---|
1/* Alpha specific support for 64-bit ELF 2 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 3 Free Software Foundation, Inc. 4 Contributed by Richard Henderson <rth@tamu.edu>. 5 6This file is part of BFD, the Binary File Descriptor library. 7 8This program is free software; you can redistribute it and/or modify --- 5 unchanged lines hidden (view full) --- 14but WITHOUT ANY WARRANTY; without even the implied warranty of 15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16GNU General Public License for more details. 17 18You should have received a copy of the GNU General Public License 19along with this program; if not, write to the Free Software 20Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 21 | 1/* Alpha specific support for 64-bit ELF 2 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 3 Free Software Foundation, Inc. 4 Contributed by Richard Henderson <rth@tamu.edu>. 5 6This file is part of BFD, the Binary File Descriptor library. 7 8This program is free software; you can redistribute it and/or modify --- 5 unchanged lines hidden (view full) --- 14but WITHOUT ANY WARRANTY; without even the implied warranty of 15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16GNU General Public License for more details. 17 18You should have received a copy of the GNU General Public License 19along with this program; if not, write to the Free Software 20Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 21 |
22/* $FreeBSD: head/contrib/binutils/bfd/elf64-alpha.c 94544 2002-04-12 19:51:31Z obrien $ */ | 22/* $FreeBSD: head/contrib/binutils/bfd/elf64-alpha.c 99465 2002-07-05 20:32:42Z obrien $ */ |
23 24/* We need a published ABI spec for this. Until one comes out, don't 25 assume this'll remain unchanged forever. */ 26 27#include "bfd.h" 28#include "sysdep.h" 29#include "libbfd.h" 30#include "elf-bfd.h" --- 3663 unchanged lines hidden (view full) --- 3694 ((Elf64_External_Rela *) 3695 srel->contents) 3696 + srel->reloc_count++); 3697 BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count 3698 <= srel->_cooked_size); 3699 } 3700 goto default_reloc; 3701 | 23 24/* We need a published ABI spec for this. Until one comes out, don't 25 assume this'll remain unchanged forever. */ 26 27#include "bfd.h" 28#include "sysdep.h" 29#include "libbfd.h" 30#include "elf-bfd.h" --- 3663 unchanged lines hidden (view full) --- 3694 ((Elf64_External_Rela *) 3695 srel->contents) 3696 + srel->reloc_count++); 3697 BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count 3698 <= srel->_cooked_size); 3699 } 3700 goto default_reloc; 3701 |
3702 case R_ALPHA_SREL32: 3703 case R_ALPHA_SREL64: 3704 /* ??? .eh_frame references to discarded sections will be smashed 3705 to relocations against SHN_UNDEF. The .eh_frame format allows 3706 NULL to be encoded as 0 in any format, so this works here. */ 3707 if (r_symndx == 0) 3708 howto = (elf64_alpha_howto_table 3709 + (r_type - R_ALPHA_SREL32 + R_ALPHA_REFLONG)); 3710 goto default_reloc; 3711 |
|
3702 default: 3703 default_reloc: 3704 r = _bfd_final_link_relocate (howto, input_bfd, input_section, 3705 contents, rel->r_offset, relocation, 3706 addend); 3707 break; 3708 } 3709 --- 723 unchanged lines hidden --- | 3712 default: 3713 default_reloc: 3714 r = _bfd_final_link_relocate (howto, input_bfd, input_section, 3715 contents, rel->r_offset, relocation, 3716 addend); 3717 break; 3718 } 3719 --- 723 unchanged lines hidden --- |