Commit 4ba8500d authored by H.J. Lu's avatar H.J. Lu
Browse files

Merge remote-tracking branch 'origin/users/hjl/linux/master' into users/hjl/linux/applied

parents b8cc0ceb c935ff02

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
...@@ -313,10 +313,10 @@ WITHOUT ANY WARRANTY; without even the implied warranty of ...@@ -313,10 +313,10 @@ WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details. General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to along with this program; if not, write to the Free Software
the Free Software Foundation, 59 Temple Place - Suite 330, Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
Boston, MA 02111-1307, USA. MA 02110-1301, USA.
As a special exception, if you link this library with files As a special exception, if you link this library with files
compiled with GCC to produce an executable, this does not cause compiled with GCC to produce an executable, this does not cause
......
2018-01-10 Nick Clifton <nickc@redhat.com>
* config-ml.in: Sync with gcc sources.
* config.guess: Likewise.
* config.sub: Likewise.
* configure.ac: Likewise.
* configure: Regenerate.
2017-12-14 Nick Clifton <nickc@redhat.com>
* COPYING.LIBGLOSS: Update address of FSF in copyright notice.
2017-12-12 Stafford Horne <shorne@gmail.com>
* configure.ac: Remove logic adding gdb to noconfigsdirs for or1k.
* configure: Regenerate.
2017-09-15 Nick Clifton <nickc@redhat.com>
* src-release.sh (LZIPPROG): New define. Provides the name of the
lzip program.
(do_lz): New function. Compresses a tarball using the lzip
program.
(do_compress): Add support for lzip compression.
(usage): Mention -l option.
(build_release): Support -l option to invoke lzip compression.
2017-09-15 Alan Modra <amodra@gmail.com>
* src-release.sh (do_proto_toplev): Revert last patch. Enable or
disable binutils, gas, gdb, gold, gprof, ld, libdecnumber, readline,
and sim depending on $tool and $support_files. Echo configure line.
2017-09-14 Matt Rice <ratmice@gmail.com>
* src-release.sh (do_proto_toplev): Enable gold during release process.
2017-04-13 Andrew Jenner <andrew@codesourcery.com> 2017-04-13 Andrew Jenner <andrew@codesourcery.com>
* config.sub: Sync with master version in config project. * config.sub: Sync with master version in config project.
......
bfd/
2013-04-05 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (struct elf_backend_data <merge_symbol>): Add abfd,
newdyn and olddyn. Remove const from oldsec.
(_bfd_elf_sharable_merge_symbol): Updated.
* elf64-x86-64.c (elf_x86_64_merge_symbol): Likewise.
* elflink.c (_bfd_elf_merge_symbol): Update bed->merge_symbol
call.
2009-12-12 H.J. Lu <hongjiu.lu@intel.com>
* elf.c: Fix shadowed variable warnings.
* elf64-x86-64.c: Likewise.
* elflink.c: Likewise.
2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (_bfd_elf_sharable_com_section): New.
(_bfd_elf_add_sharable_symbol): Likewise.
(_bfd_elf_sharable_section_from_bfd_section): Likewise.
(_bfd_elf_sharable_symbol_processing): Likewise.
(_bfd_elf_sharable_common_definition): Likewise.
(_bfd_elf_sharable_common_section_index): Likewise.
(_bfd_elf_sharable_common_section): Likewise.
(_bfd_elf_sharable_merge_symbol): Likewise.
* elf.c (special_sections_g): Add ".gnu.linkonce.shrb" and
".gnu.linkonce.shrd".
(special_sections_s): Add ".sharable_bss" and ".sharable_data".
(get_program_header_size): Handle PT_GNU_SHR segment.
(_bfd_elf_map_sections_to_segments): Likewise.
(assign_file_positions_for_load_sections): Likewise.
* elf32-i386.c (elf_i386_link_hash_table): Add sdynsharablebss
and srelsharablebss fields.
(elf_i386_link_hash_table_create): Initialize sdynsharablebss
and srelsharablebss.
(elf_i386_create_dynamic_sections): Handle sdynsharablebss and
srelsharablebss.
(elf_i386_adjust_dynamic_symbol): Likewise.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_finish_dynamic_symbol): Likewise.
(elf_backend_add_symbol_hook): Defined.
(elf_backend_section_from_bfd_section): Likewise.
(elf_backend_symbol_processing): Likewise.
(elf_backend_common_section_index): Likewise.
(elf_backend_common_section): Likewise.
(elf_backend_common_definition): Likewise.
(elf_backend_merge_symbol): Likewise.
* elf64-x86-64.c (elf64_x86_64_link_hash_table): Add
sdynsharablebss and srelsharablebss fields.
(elf64_x86_64_link_hash_table_create): Initialize sdynsharablebss
and srelsharablebss.
(elf64_x86_64_create_dynamic_sections): Handle sdynsharablebss
and srelsharablebss.
(elf64_x86_64_adjust_dynamic_symbol): Likewise.
(elf64_x86_64_size_dynamic_sections): Likewise.
(elf64_x86_64_finish_dynamic_symbol): Likewise.
(elf64_x86_64_add_symbol_hook): Handle sharable symbols.
(elf64_x86_64_elf_section_from_bfd_section): Likewise.
(elf64_x86_64_symbol_processing): Likewise.
(elf64_x86_64_merge_symbol): Likewise.
(elf64_x86_64_common_definition): Handle sharable sections.
(elf64_x86_64_common_section_index): Likewise.
(elf64_x86_64_common_section): Likewise.
* elflink.c (_bfd_elf_create_dynamic_sections): Handle
.dynsharablebss section.
(_bfd_elf_sharable_com_section): New.
(get_sharable_common_section): Likewise.
(_bfd_elf_add_sharable_symbol): Likewise.
(_bfd_elf_sharable_section_from_bfd_section): Likewise.
(_bfd_elf_sharable_symbol_processing): Likewise.
(_bfd_elf_sharable_common_definition): Likewise.
(_bfd_elf_sharable_common_section_index): Likewise.
(_bfd_elf_sharable_common_section): Likewise.
(_bfd_elf_sharable_merge_symbol): Likewise.
* elfnn-ia64.c (elfNN_ia64_add_symbol_hook): Handle sharable
symbols.
(elf_backend_add_symbol_hook): Defined.
(elf_backend_section_from_bfd_section): Likewise.
(elf_backend_symbol_processing): Likewise.
(elf_backend_common_section_index): Likewise.
(elf_backend_common_section): Likewise.
(elf_backend_common_definition): Likewise.
(elf_backend_merge_symbol): Likewise.
binutils/
2007-01-04 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (dump_relocations): Handle sharable sections.
(get_segment_type): Handle sharable segment.
(get_symbol_index_type): Handle sharable sections.
gas/
2007-01-04 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_sharable_common): New.
(elf_pseudo_table): Add "sharable_common".
(obj_elf_change_section): Handle sharable sections.
include/
2007-01-23 H.J. Lu <hongjiu.lu@intel.com>
* bfdlink.h (bfd_link_info): Add sharable_sections.
include/elf/
2007-01-04 H.J. Lu <hongjiu.lu@intel.com>
* common.h (PT_GNU_SHR): New.
(SHF_GNU_SHARABLE): Likewise.
(SHN_GNU_SHARABLE_COMMON): Likewise.
ld/
2011-01-08 H.J. Lu <hongjiu.lu@intel.com>
* emulparams/elf32_x86_64.sh (SHARABLE_SECTIONS): Set to yes.
2007-01-04 H.J. Lu <hongjiu.lu@intel.com>
* emulparams/elf64_ia64.sh (SHARABLE_SECTIONS): Set to yes.
* emulparams/elf_i386.sh (SHARABLE_SECTIONS): Likewise.
* emulparams/elf_x86_64.sh (SHARABLE_SECTIONS): Likewise.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
link_info.sharable_sections based on $SHARABLE_SECTIONS.
(gld${EMULATION_NAME}_place_orphan): Don't allow orphaned
sharable sections.
* ldmain.c (main): Initialize link_info.sharable_sections.
* scripttempl/elf.sc: Support sharable sections.
This diff is collapsed.
This diff is collapsed.
See ../binutils/MAINTAINERS See ../binutils/MAINTAINERS
Copyright (C) 2012-2017 Free Software Foundation, Inc. Copyright (C) 2012-2018 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification, Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright are permitted in any medium without royalty provided the copyright
......
## Process this file with automake to generate Makefile.in ## Process this file with automake to generate Makefile.in
# #
# Copyright (C) 2012-2017 Free Software Foundation, Inc. # Copyright (C) 2012-2018 Free Software Foundation, Inc.
# #
# This file is free software; you can redistribute it and/or modify # This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -346,6 +346,7 @@ BFD32_BACKENDS = \ ...@@ -346,6 +346,7 @@ BFD32_BACKENDS = \
elf32-hppa.lo \ elf32-hppa.lo \
elf32-i370.lo \ elf32-i370.lo \
elf32-i386.lo \ elf32-i386.lo \
elfxx-x86.lo \
elf32-i860.lo \ elf32-i860.lo \
elf32-i960.lo \ elf32-i960.lo \
elf32-ip2k.lo \ elf32-ip2k.lo \
...@@ -542,6 +543,7 @@ BFD32_BACKENDS_CFILES = \ ...@@ -542,6 +543,7 @@ BFD32_BACKENDS_CFILES = \
elf32-hppa.c \ elf32-hppa.c \
elf32-i370.c \ elf32-i370.c \
elf32-i386.c \ elf32-i386.c \
elfxx-x86.c \
elf32-i860.c \ elf32-i860.c \
elf32-i960.c \ elf32-i960.c \
elf32-ip2k.c \ elf32-ip2k.c \
...@@ -699,6 +701,7 @@ BFD64_BACKENDS = \ ...@@ -699,6 +701,7 @@ BFD64_BACKENDS = \
elf64-sparc.lo \ elf64-sparc.lo \
elf64-tilegx.lo \ elf64-tilegx.lo \
elf64-x86-64.lo \ elf64-x86-64.lo \
elfxx-x86.lo \
elf64.lo \ elf64.lo \
mach-o-aarch64.lo \ mach-o-aarch64.lo \
mach-o-x86-64.lo \ mach-o-x86-64.lo \
...@@ -734,6 +737,7 @@ BFD64_BACKENDS_CFILES = \ ...@@ -734,6 +737,7 @@ BFD64_BACKENDS_CFILES = \
elf64-sparc.c \ elf64-sparc.c \
elf64-tilegx.c \ elf64-tilegx.c \
elf64-x86-64.c \ elf64-x86-64.c \
elfxx-x86.c \
elf64.c \ elf64.c \
elfn32-mips.c \ elfn32-mips.c \
elfxx-aarch64.c \ elfxx-aarch64.c \
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
@SET_MAKE@ @SET_MAKE@
# #
# Copyright (C) 2012-2017 Free Software Foundation, Inc. # Copyright (C) 2012-2018 Free Software Foundation, Inc.
# #
# This file is free software; you can redistribute it and/or modify # This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -680,6 +680,7 @@ BFD32_BACKENDS = \ ...@@ -680,6 +680,7 @@ BFD32_BACKENDS = \
elf32-hppa.lo \ elf32-hppa.lo \
elf32-i370.lo \ elf32-i370.lo \
elf32-i386.lo \ elf32-i386.lo \
elfxx-x86.lo \
elf32-i860.lo \ elf32-i860.lo \
elf32-i960.lo \ elf32-i960.lo \
elf32-ip2k.lo \ elf32-ip2k.lo \
...@@ -876,6 +877,7 @@ BFD32_BACKENDS_CFILES = \ ...@@ -876,6 +877,7 @@ BFD32_BACKENDS_CFILES = \
elf32-hppa.c \ elf32-hppa.c \
elf32-i370.c \ elf32-i370.c \
elf32-i386.c \ elf32-i386.c \
elfxx-x86.c \
elf32-i860.c \ elf32-i860.c \
elf32-i960.c \ elf32-i960.c \
elf32-ip2k.c \ elf32-ip2k.c \
...@@ -1034,6 +1036,7 @@ BFD64_BACKENDS = \ ...@@ -1034,6 +1036,7 @@ BFD64_BACKENDS = \
elf64-sparc.lo \ elf64-sparc.lo \
elf64-tilegx.lo \ elf64-tilegx.lo \
elf64-x86-64.lo \ elf64-x86-64.lo \
elfxx-x86.lo \
elf64.lo \ elf64.lo \
mach-o-aarch64.lo \ mach-o-aarch64.lo \
mach-o-x86-64.lo \ mach-o-x86-64.lo \
...@@ -1069,6 +1072,7 @@ BFD64_BACKENDS_CFILES = \ ...@@ -1069,6 +1072,7 @@ BFD64_BACKENDS_CFILES = \
elf64-sparc.c \ elf64-sparc.c \
elf64-tilegx.c \ elf64-tilegx.c \
elf64-x86-64.c \ elf64-x86-64.c \
elfxx-x86.c \
elf64.c \ elf64.c \
elfn32-mips.c \ elfn32-mips.c \
elfxx-aarch64.c \ elfxx-aarch64.c \
...@@ -1574,6 +1578,7 @@ distclean-compile: ...@@ -1574,6 +1578,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-riscv.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-riscv.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-sparc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-sparc.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-tilegx.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-tilegx.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-x86.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epoc-pe-arm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epoc-pe-arm.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epoc-pei-arm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epoc-pei-arm.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format.Plo@am__quote@
......
...@@ -82,7 +82,7 @@ TARGETNAME ...@@ -82,7 +82,7 @@ TARGETNAME
The name of the target, for run-time lookups. The name of the target, for run-time lookups.
Usually "a.out-<target>" Usually "a.out-<target>"
Copyright (C) 2012-2017 Free Software Foundation, Inc. Copyright (C) 2012-2018 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification, Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright are permitted in any medium without royalty provided the copyright
......
...@@ -48,7 +48,7 @@ gcc manual. ...@@ -48,7 +48,7 @@ gcc manual.
Bug reports without patches will be remembered, but they may never get Bug reports without patches will be remembered, but they may never get
fixed until somebody volunteers to fix them. fixed until somebody volunteers to fix them.
Copyright (C) 2012-2017 Free Software Foundation, Inc. Copyright (C) 2012-2018 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification, Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright are permitted in any medium without royalty provided the copyright
......
...@@ -20,7 +20,7 @@ Things that still need to be done: -*- Text -*- ...@@ -20,7 +20,7 @@ Things that still need to be done: -*- Text -*-
o - upgrade the reloc handling as per Steve's suggestion. o - upgrade the reloc handling as per Steve's suggestion.
Copyright (C) 2012-2017 Free Software Foundation, Inc. Copyright (C) 2012-2018 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification, Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright are permitted in any medium without royalty provided the copyright
......
dnl dnl
dnl Copyright (C) 2012-2017 Free Software Foundation, Inc. dnl Copyright (C) 2012-2018 Free Software Foundation, Inc.
dnl dnl
dnl This file is free software; you can redistribute it and/or modify dnl This file is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by dnl it under the terms of the GNU General Public License as published by
......
/* BFD back-end for AIX on PS/2 core files. /* BFD back-end for AIX on PS/2 core files.
This was based on trad-core.c, which was written by John Gilmore of This was based on trad-core.c, which was written by John Gilmore of
Cygnus Support. Cygnus Support.
Copyright (C) 1988-2017 Free Software Foundation, Inc. Copyright (C) 1988-2018 Free Software Foundation, Inc.
Written by Minh Tran-Le <TRANLE@INTELLICORP.COM>. Written by Minh Tran-Le <TRANLE@INTELLICORP.COM>.
Converted to back end form by Ian Lance Taylor <ian@cygnus.com>. Converted to back end form by Ian Lance Taylor <ian@cygnus.com>.
......
/* IBM RS/6000 "XCOFF" back-end for BFD. /* IBM RS/6000 "XCOFF" back-end for BFD.
Copyright (C) 2001-2017 Free Software Foundation, Inc. Copyright (C) 2001-2018 Free Software Foundation, Inc.
Written by Tom Rix Written by Tom Rix
Contributed by Red Hat Inc. Contributed by Red Hat Inc.
......
/* BFD back-end for a.out.adobe binaries. /* BFD back-end for a.out.adobe binaries.
Copyright (C) 1990-2017 Free Software Foundation, Inc. Copyright (C) 1990-2018 Free Software Foundation, Inc.
Written by Cygnus Support. Based on bout.c. Written by Cygnus Support. Based on bout.c.
This file is part of BFD, the Binary File Descriptor library. This file is part of BFD, the Binary File Descriptor library.
...@@ -452,29 +452,29 @@ aout_adobe_sizeof_headers (bfd *ignore_abfd ATTRIBUTE_UNUSED, ...@@ -452,29 +452,29 @@ aout_adobe_sizeof_headers (bfd *ignore_abfd ATTRIBUTE_UNUSED,
#define aout_32_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol #define aout_32_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
#define aout_32_bfd_reloc_type_lookup _bfd_norelocs_bfd_reloc_type_lookup #define aout_32_bfd_reloc_type_lookup _bfd_norelocs_bfd_reloc_type_lookup
#define aout_32_bfd_reloc_name_lookup _bfd_norelocs_bfd_reloc_name_lookup #define aout_32_bfd_reloc_name_lookup _bfd_norelocs_bfd_reloc_name_lookup
#define aout_32_close_and_cleanup aout_32_bfd_free_cached_info #define aout_32_close_and_cleanup aout_32_bfd_free_cached_info
#define aout_32_set_arch_mach aout_adobe_set_arch_mach #define aout_32_set_arch_mach aout_adobe_set_arch_mach
#define aout_32_set_section_contents aout_adobe_set_section_contents #define aout_32_set_section_contents aout_adobe_set_section_contents
#define aout_32_sizeof_headers aout_adobe_sizeof_headers #define aout_32_sizeof_headers aout_adobe_sizeof_headers
#define aout_32_bfd_get_relocated_section_contents bfd_generic_get_relocated_section_contents #define aout_32_bfd_get_relocated_section_contents bfd_generic_get_relocated_section_contents
#define aout_32_get_section_contents_in_window _bfd_generic_get_section_contents_in_window #define aout_32_get_section_contents_in_window _bfd_generic_get_section_contents_in_window
#define aout_32_bfd_relax_section bfd_generic_relax_section #define aout_32_bfd_relax_section bfd_generic_relax_section
#define aout_32_bfd_gc_sections bfd_generic_gc_sections #define aout_32_bfd_gc_sections bfd_generic_gc_sections
#define aout_32_bfd_lookup_section_flags bfd_generic_lookup_section_flags #define aout_32_bfd_lookup_section_flags bfd_generic_lookup_section_flags
#define aout_32_bfd_merge_sections bfd_generic_merge_sections #define aout_32_bfd_merge_sections bfd_generic_merge_sections
#define aout_32_bfd_is_group_section bfd_generic_is_group_section #define aout_32_bfd_is_group_section bfd_generic_is_group_section
#define aout_32_bfd_discard_group bfd_generic_discard_group #define aout_32_bfd_discard_group bfd_generic_discard_group
#define aout_32_section_already_linked _bfd_generic_section_already_linked #define aout_32_section_already_linked _bfd_generic_section_already_linked
#define aout_32_bfd_define_common_symbol bfd_generic_define_common_symbol #define aout_32_bfd_define_common_symbol bfd_generic_define_common_symbol
#define aout_32_bfd_define_start_stop bfd_generic_define_start_stop #define aout_32_bfd_define_start_stop bfd_generic_define_start_stop
#define aout_32_bfd_link_hash_table_create _bfd_generic_link_hash_table_create #define aout_32_bfd_link_hash_table_create _bfd_generic_link_hash_table_create
#define aout_32_bfd_link_add_symbols _bfd_generic_link_add_symbols #define aout_32_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define aout_32_bfd_link_just_syms _bfd_generic_link_just_syms #define aout_32_bfd_link_just_syms _bfd_generic_link_just_syms
#define aout_32_bfd_copy_link_hash_symbol_type \ #define aout_32_bfd_copy_link_hash_symbol_type \
_bfd_generic_copy_link_hash_symbol_type _bfd_generic_copy_link_hash_symbol_type
#define aout_32_bfd_final_link _bfd_generic_final_link #define aout_32_bfd_final_link _bfd_generic_final_link
#define aout_32_bfd_link_split_section _bfd_generic_link_split_section #define aout_32_bfd_link_split_section _bfd_generic_link_split_section
#define aout_32_bfd_link_check_relocs _bfd_generic_link_check_relocs #define aout_32_bfd_link_check_relocs _bfd_generic_link_check_relocs
#define aout_32_set_reloc _bfd_generic_set_reloc #define aout_32_set_reloc _bfd_generic_set_reloc
const bfd_target aout_adobe_vec = const bfd_target aout_adobe_vec =
......
/* BFD back-end for raw ARM a.out binaries. /* BFD back-end for raw ARM a.out binaries.
Copyright (C) 1994-2017 Free Software Foundation, Inc. Copyright (C) 1994-2018 Free Software Foundation, Inc.
Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org) Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
This file is part of BFD, the Binary File Descriptor library. This file is part of BFD, the Binary File Descriptor library.
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
#define MY(OP) CONCAT2 (arm_aout_,OP) #define MY(OP) CONCAT2 (arm_aout_,OP)
#define N_BADMAG(x) ((((x)->a_info & ~007200) != ZMAGIC) && \ #define N_BADMAG(x) ((((x)->a_info & ~007200) != ZMAGIC) && \
(((x)->a_info & ~006000) != OMAGIC) && \ (((x)->a_info & ~006000) != OMAGIC) && \
((x)->a_info != NMAGIC)) ((x)->a_info != NMAGIC))
#define N_MAGIC(x) ((x)->a_info & ~07200) #define N_MAGIC(x) ((x)->a_info & ~07200)
#define MY_bfd_reloc_type_lookup arm_aout_bfd_reloc_type_lookup #define MY_bfd_reloc_type_lookup arm_aout_bfd_reloc_type_lookup
...@@ -111,7 +111,7 @@ MY (reloc_howto) (bfd *abfd, ...@@ -111,7 +111,7 @@ MY (reloc_howto) (bfd *abfd,
| rel->r_index[2]); | rel->r_index[2]);
*r_extern = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_BIG)); *r_extern = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_BIG));
r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_BIG)); r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_BIG));
r_neg = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_BIG)); r_neg = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_BIG));
r_length = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_BIG) r_length = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_BIG)
>> RELOC_STD_BITS_LENGTH_SH_BIG); >> RELOC_STD_BITS_LENGTH_SH_BIG);
} }
...@@ -122,7 +122,7 @@ MY (reloc_howto) (bfd *abfd, ...@@ -122,7 +122,7 @@ MY (reloc_howto) (bfd *abfd,
| rel->r_index[0]); | rel->r_index[0]);
*r_extern = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_LITTLE)); *r_extern = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_LITTLE));
r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_LITTLE)); r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_LITTLE));
r_neg = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_LITTLE)); r_neg = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_LITTLE));
r_length = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_LITTLE) r_length = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_LITTLE)
>> RELOC_STD_BITS_LENGTH_SH_LITTLE); >> RELOC_STD_BITS_LENGTH_SH_LITTLE);
} }
...@@ -156,7 +156,7 @@ MY (put_reloc) (bfd *abfd, ...@@ -156,7 +156,7 @@ MY (put_reloc) (bfd *abfd,
if (howto->type == 3 || howto->type == 7) if (howto->type == 3 || howto->type == 7)
r_length = 3; r_length = 3;
r_pcrel = howto->type & 4; /* PC Relative done? */ r_pcrel = howto->type & 4; /* PC Relative done? */
r_neg = howto->type & 8; /* Negative relocation. */ r_neg = howto->type & 8; /* Negative relocation. */
if (bfd_header_big_endian (abfd)) if (bfd_header_big_endian (abfd))
...@@ -298,8 +298,8 @@ MY (bfd_reloc_type_lookup) (bfd *abfd, ...@@ -298,8 +298,8 @@ MY (bfd_reloc_type_lookup) (bfd *abfd,
switch (bfd_arch_bits_per_address (abfd)) switch (bfd_arch_bits_per_address (abfd))
{ {
case 32: case 32:
code = BFD_RELOC_32; code = BFD_RELOC_32;
break; break;
default: default:
return NULL; return NULL;
} }
...@@ -465,17 +465,17 @@ extern const bfd_target arm_aout_be_vec; ...@@ -465,17 +465,17 @@ extern const bfd_target arm_aout_be_vec;
const bfd_target arm_aout_le_vec = const bfd_target arm_aout_le_vec =
{ {
"a.out-arm-little", /* Name. */ "a.out-arm-little", /* Name. */
bfd_target_aout_flavour, bfd_target_aout_flavour,
BFD_ENDIAN_LITTLE, /* Target byte order (little). */ BFD_ENDIAN_LITTLE, /* Target byte order (little). */
BFD_ENDIAN_LITTLE, /* Target headers byte order (little). */ BFD_ENDIAN_LITTLE, /* Target headers byte order (little). */
(HAS_RELOC | EXEC_P | /* Object flags. */ (HAS_RELOC | EXEC_P | /* Object flags. */
HAS_LINENO | HAS_DEBUG | HAS_LINENO | HAS_DEBUG |
HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT | D_PAGED), HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT | D_PAGED),
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_CODE | SEC_DATA), (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_CODE | SEC_DATA),
MY_symbol_leading_char, MY_symbol_leading_char,
AR_PAD_CHAR, /* AR_pad_char. */ AR_PAD_CHAR, /* AR_pad_char. */
15, /* AR_max_namelen. */ 15, /* AR_max_namelen. */
0, /* match priority. */ 0, /* match priority. */
bfd_getl64, bfd_getl_signed_64, bfd_putl64, bfd_getl64, bfd_getl_signed_64, bfd_putl64,
bfd_getl32, bfd_getl_signed_32, bfd_putl32, bfd_getl32, bfd_getl_signed_32, bfd_putl32,
...@@ -507,11 +507,11 @@ const bfd_target arm_aout_le_vec = ...@@ -507,11 +507,11 @@ const bfd_target arm_aout_le_vec =
const bfd_target arm_aout_be_vec = const bfd_target arm_aout_be_vec =
{ {
"a.out-arm-big", /* Name. */ "a.out-arm-big", /* Name. */
bfd_target_aout_flavour, bfd_target_aout_flavour,
BFD_ENDIAN_BIG, /* Target byte order (big). */ BFD_ENDIAN_BIG, /* Target byte order (big). */
BFD_ENDIAN_BIG, /* Target headers byte order (big). */ BFD_ENDIAN_BIG, /* Target headers byte order (big). */
(HAS_RELOC | EXEC_P | /* Object flags. */ (HAS_RELOC | EXEC_P | /* Object flags. */
HAS_LINENO | HAS_DEBUG | HAS_LINENO | HAS_DEBUG |
HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT | D_PAGED), HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT | D_PAGED),
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_CODE | SEC_DATA), (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_CODE | SEC_DATA),
......
/* BFD backend for CRIS a.out binaries. /* BFD backend for CRIS a.out binaries.
Copyright (C) 2000-2017 Free Software Foundation, Inc. Copyright (C) 2000-2018 Free Software Foundation, Inc.
Contributed by Axis Communications AB. Contributed by Axis Communications AB.
Written by Hans-Peter Nilsson. Written by Hans-Peter Nilsson.
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
functions. Beware; some of the information there is outdated. */ functions. Beware; some of the information there is outdated. */