reloc.c (104834) | reloc.c (107492) |
---|---|
1/* BFD support for handling relocation entries. 2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3 2000, 2001, 2002 4 Free Software Foundation, Inc. 5 Written by Cygnus Support. 6 7This file is part of BFD, the Binary File Descriptor library. 8 --- 3560 unchanged lines hidden (view full) --- 3569 Provides a printable name for the supplied relocation code. 3570 Useful mainly for printing error messages. 3571*/ 3572 3573const char * 3574bfd_get_reloc_code_name (code) 3575 bfd_reloc_code_real_type code; 3576{ | 1/* BFD support for handling relocation entries. 2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3 2000, 2001, 2002 4 Free Software Foundation, Inc. 5 Written by Cygnus Support. 6 7This file is part of BFD, the Binary File Descriptor library. 8 --- 3560 unchanged lines hidden (view full) --- 3569 Provides a printable name for the supplied relocation code. 3570 Useful mainly for printing error messages. 3571*/ 3572 3573const char * 3574bfd_get_reloc_code_name (code) 3575 bfd_reloc_code_real_type code; 3576{ |
3577 if (code > BFD_RELOC_UNUSED) | 3577 if ((int) code > (int) BFD_RELOC_UNUSED) |
3578 return 0; 3579 return bfd_reloc_code_real_names[(int)code]; 3580} 3581 3582/* 3583INTERNAL_FUNCTION 3584 bfd_generic_relax_section 3585 --- 111 unchanged lines hidden (view full) --- 3697 input_section, 3698 (PTR) data, 3699 (bfd_vma) 0, 3700 input_section->_raw_size)) 3701 goto error_return; 3702 3703 /* We're not relaxing the section, so just copy the size info. */ 3704 input_section->_cooked_size = input_section->_raw_size; | 3578 return 0; 3579 return bfd_reloc_code_real_names[(int)code]; 3580} 3581 3582/* 3583INTERNAL_FUNCTION 3584 bfd_generic_relax_section 3585 --- 111 unchanged lines hidden (view full) --- 3697 input_section, 3698 (PTR) data, 3699 (bfd_vma) 0, 3700 input_section->_raw_size)) 3701 goto error_return; 3702 3703 /* We're not relaxing the section, so just copy the size info. */ 3704 input_section->_cooked_size = input_section->_raw_size; |
3705 input_section->reloc_done = true; | 3705 input_section->reloc_done = (unsigned int) true; |
3706 3707 reloc_count = bfd_canonicalize_reloc (input_bfd, 3708 input_section, 3709 reloc_vector, 3710 symbols); 3711 if (reloc_count < 0) 3712 goto error_return; 3713 --- 67 unchanged lines hidden --- | 3706 3707 reloc_count = bfd_canonicalize_reloc (input_bfd, 3708 input_section, 3709 reloc_vector, 3710 symbols); 3711 if (reloc_count < 0) 3712 goto error_return; 3713 --- 67 unchanged lines hidden --- |