- 20 Jun, 2017 5 commits
-
-
Thomas Preud'homme authored
The LDR rX, =cst pseudo-instruction suffers from two issues for loading integer constants in Thumb mode: - movs is used if the constant and register can be encoded using that instruction which leads to unexpected behavior due to its flag-setting behavior - mov.w, movw and mvn are used for r13 (sp) and r15 (pc) but these encoding are marked as UNPREDICTABLE This patch fixes those issues and update testing accordingly. 2017-06-20 Thomas Preud'homme <thomas.preudhomme@arm.com> Backport from mainline 2017-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com> gas/ * config/tc-arm.c (move_or_literal_pool): Remove code generating MOVS. Forbid MOV.W and MOVW if destination is SP or PC. * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.s: Explain expectation of LDR not generating a MOVS for low registers and small constants. Add tests of MOVW generation. * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Update expected disassembly.
-
Thomas Preud'homme authored
For ELF targets --out-implib currently generates an executable file (e_type is ET_EXEC) despite the file being expected to be linked against some other object file to make an executable later. It seems therefore more sensible to make the import library a relocatable object file (e_type set to ET_REL). Incidentally, as dicted by requirement 8 of "ARM v8-M Security Extensions: Requirements on Development Tools" (document ARM-ECM-0359818) version 1.0, import libraries generated when using --cmse-implib *must* be relocatable object file so this commit also adds an assert there in case the type of ELF import library is changed again in the future. 2017-06-20 Thomas Preud'homme <thomas.preudhomme@arm.com> Backport from mainline 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com> bfd/ * elflink.c (elf_output_implib): Remove executable flag from import library bfd. * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import library is a relocatable object file. gas/ * testsuite/ld-arm/arm-elf.exp (Secure gateway import library generation): Check e_type field of import library and executable produced. * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
-
James Clarke authored
If two objects are compiled with -fPIC or -fPIE and call the same function, two different PLT entries are created, one for each object, but the same stub symbol name is used for both. * powerpc.cc (Stub_table::define_stub_syms): Always include object's uniq_ value.
-
Nick Clifton authored
* config/tc-riscv.c (riscv_pre_output_hook): Fix compile time warning about discarding a const qualifier.
-
GDB Administrator authored
-
- 19 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 18 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 17 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 16 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 15 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 14 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 13 Jun, 2017 2 commits
-
-
James Clarke authored
PR ld/19579 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check ELF_COMMON_DEF_P for common symbols.
-
GDB Administrator authored
-
- 12 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 11 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 10 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 09 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 08 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 07 Jun, 2017 2 commits
-
-
Casey Smith authored
Import a fix from upstream that allows the ARM ADR pseudo-instruction to work when generating a SUB instruction. 2017-05-30 Casey Smith <clegg89@gmail.com> PR ld/21523 * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute value when processing the R_ARM_THM_ALU_PREL_11_0 reloc.
-
GDB Administrator authored
-
- 06 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 05 Jun, 2017 2 commits
-
-
Alan Modra authored
PR 21529 * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE.
-
GDB Administrator authored
-
- 04 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 03 Jun, 2017 2 commits
-
-
Alan Modra authored
PR 21503 * options.h: Add --emit-stub-syms option. * powerpc.cc (object_id): New. (Powerpc_relobj): Add uniq_ and accessor. Sort variables for better packing. (Powerpc_dynobj): Sort variables for better packing. (Target_powerpc::define_local): New function. (Target_powerpc::group_sections): Pass stub table size to Stub_table constructor. (Target_powerpc::do_relax): Define stub and glink symbols. (Stub_table): Add uniq_ variable, and id param to constructor. (Stub_table::Plt_stub_ent): Add indx_ variable. (Stub_table::Branch_stub_entries): Move typedef earlier. (Stub_table::branch_stub_size): Replace "to" parameter with a Branch_stub_entries iterator. (Stub_table::add_long_branch_entry): Adjust to suit. (Stub_table::add_plt_call_entry): Set indx_. (Stub_table::define_stub_syms): New function.
-
GDB Administrator authored
-
- 02 Jun, 2017 2 commits
-
-
H.J. Lu authored
Since it is incorrect to convert bnd call *foo@GOTPCREL(%rip) to bnd nop call foo this patch removes the "-z prefix-nop" option from x86 linker. * emulparams/call_nop.sh: Remove -z prefix-nop. * ld.texinfo: Likewise. * testsuite/ld-i386/call3c.d: Check for linker error. * testsuite/ld-x86-64/call1c.d: Likewise. (cherry picked from commit 4a4a4a27)
-
GDB Administrator authored
-
- 01 Jun, 2017 1 commit
-
-
GDB Administrator authored
-
- 31 May, 2017 2 commits
-
-
Alan Modra authored
* emultempl/ppc64elf.em (plt-static-chain help): Fix quoting.
-
GDB Administrator authored
-
- 30 May, 2017 1 commit
-
-
GDB Administrator authored
-
- 29 May, 2017 1 commit
-
-
GDB Administrator authored
-
- 28 May, 2017 1 commit
-
-
GDB Administrator authored
-
- 27 May, 2017 1 commit
-
-
GDB Administrator authored
-
- 26 May, 2017 1 commit
-
-
GDB Administrator authored
-
- 25 May, 2017 1 commit
-
-
GDB Administrator authored
-
- 24 May, 2017 1 commit
-
-
GDB Administrator authored
-
- 23 May, 2017 1 commit
-
-
GDB Administrator authored
-
- 22 May, 2017 1 commit
-
-
GDB Administrator authored
-