1. Jan 02, 2022
  2. Jan 01, 2022
  3. Dec 31, 2021
    • H.J. Lu's avatar
      x86: Define check_relocs_failed in elfxx-x86.h · a321de3f
      H.J. Lu authored
      	* elf32-i386.c (check_relocs_failed): Moved to ...
      	* elfxx-x86.h (check_relocs_failed): Here.  New.
      	* elf64-x86-64.c (check_relocs_failed): Removed.
      a321de3f
    • H.J. Lu's avatar
      Define X86_PCREL_TYPE_P/X86_SIZE_TYPE_P in elfxx-x86.h · 831083d3
      H.J. Lu authored
      	* elf32-i386.c: Don't include "elf/i386.h".
      	(X86_PCREL_TYPE_P): Removed.
      	(X86_SIZE_TYPE_P): Likewise.
      	(elf_i386_check_relocs): Pass false to NEED_DYNAMIC_RELOCATION_P.
      	(elf_i386_relocate_section): Pass false to
      	GENERATE_DYNAMIC_RELOCATION_P and COPY_INPUT_RELOC_P.
      	* elf64-x86-64.c: Don't include "elf/x86-64.h".
      	(X86_PCREL_TYPE_P): Removed.
      	(X86_SIZE_TYPE_P): Likewise.
      	(elf_x86_64_check_relocs): Pass true to NEED_DYNAMIC_RELOCATION_P
      	and X86_PCREL_TYPE_P.
      	(elf_x86_64_relocate_section): Pass true to X86_PCREL_TYPE_P,
      	X86_SIZE_TYPE_P, GENERATE_DYNAMIC_RELOCATION_P and
      	COPY_INPUT_RELOC_P.
      	* elfxx-x86.c: Don't include "elf/i386.h" nor "elf/x86-64.h".
      	* elfxx-x86.h (X86_64_PCREL_TYPE_P): New.
      	(I386_PCREL_TYPE_P): Likewise.
      	(X86_PCREL_TYPE_P): Likewise.
      	(X86_64_SIZE_TYPE_P): Likewise.
      	(I386_SIZE_TYPE_P): Likewise.
      	(X86_SIZE_TYPE_P): Likewise.
      	(NEED_DYNAMIC_RELOCATION_P): Add IS_X86_64 and pass it to
      	X86_PCREL_TYPE_P.
      	(COPY_INPUT_RELOC_P): Likewise.
      	(GENERATE_DYNAMIC_RELOCATION_P): Add IS_X86_64, pass it to
      	X86_PCREL_TYPE_P and X86_SIZE_TYPE_P.
      831083d3
    • Tamar Christina's avatar
      ld: fix coff PE SEH · e5b10c40
      Tamar Christina authored
      COFF_WITH_pex64 and COFF_WITH_peAArch64 can't be true at the same time.
      That means that two conditionals that control the sorting of the .pdata section
      became a falsum.
      
      The testsuite doesn't catch this because the linker does the sorting and to link
      you require library support from the unwinder so we can't test from binutils in
      isolation.
      
      bfd/ChangeLog:
      
      2021-12-31  Tamar Christina  <tamar.christina@arm.com>
      
      	PR ld/28682
      	* peXXigen.c: Fix conditional.
      e5b10c40
    • GDB Administrator's avatar
      Automatic date update in version.in · 2e91308f
      GDB Administrator authored
      2e91308f
  4. Dec 30, 2021
  5. Dec 29, 2021
    • Lancelot SIX's avatar
      gdb: Copy inferior properties in clone-inferior · 003aae07
      Lancelot SIX authored
      This commit ensures that the following settings are cloned from one
      inferior to the new one when processing the clone-inferior command:
        - inferior-tty
        - environment variables
        - cwd
        - args
      
      Some of those parameters can be passed as command line arguments to GDB
      (-args and -tty), so one could expect the clone-inferior to respect
      those flags.  The following debugging session illustrates that:
      
          gdb -nx -quiet -batch \
               -ex "show args" \
               -ex "show inferior-tty" \
               -ex "clone-inferior" \
               -ex "inferior 2" \
               -ex "show args" \
               -ex "show inferior-tty" \
               -tty=/some/tty \
               -args echo foo bar
          Argument list to give program being debugged when it is started is "foo bar".
          Terminal for future runs of program being debugged is "/some/tty".
          [New inferior 2]
          Added inferior 2.
          [Switching to inferior 2 [<null>] (/bin/echo)]
          Argument list to give program being debugged when it is started is "".
          Terminal for future runs of program being debugged is "".
      
      The other properties this commit copies on clone (i.e. CWD and the
      environment variables) are included since they are related (in the sense
      that they influence the runtime behavior of the program) even if they
      cannot be directly set using command line switches.
      
      There is a chance that this patch changes existing user workflow.  I
      think that this change is mostly harmless.  If users want to start a new
      inferior based on an existing one, they probably already propagate those
      settings to the new inferior in some way.
      
      Tested on x86_64-linux.
      
      Change-Id: I3b1f28b662f246228b37bb24c2ea1481567b363d
      003aae07
    • GDB Administrator's avatar
      Automatic date update in version.in · 39907652
      GDB Administrator authored
      39907652
    • H.J. Lu's avatar
      elf32-i386: Fix a typo in GOT comments · cfe29d94
      H.J. Lu authored
      Entry offsets in the global offset table are multiples of 4, not 8.
      
      	* elf32-i386.c (elf_i386_relocate_section): Fix a typo in GOT
      	comments.
      cfe29d94
  6. Dec 28, 2021