binutils-gdb/ld/testsuite
Clément Chigot 318d83e658 ld: allow update of existing QNX stack note
Up to now, the linker would always create a QNX stack note from scratch.
However, object files could already have such note, ending up into
duplicates. QNX loader doesn't handle that.

Update the mechanism to first search through the input files for a .note
section holding a QNX stack note. If none are found, then a new section
is created into the stub file as before. This requires this search to be
done once the file have been opened, moving the whole logic a bit later
in the emulation process.

As part for this update, also allow to request an executable stack
without necessarily having to provide its size as well.  In this case, s
etup a default lazy stack of 0x1000.

ld/ChangeLog:

        * emultempl/nto.em (nto_create_QNX_note_section): New Function.
        (nto_lookup_QNX_note_section): New Function.
        (nto_add_note_section): Move the creation of the note section
        in the above new functions.
        (nto_create_output_section_statements): rename nto_after_open
        * testsuite/ld-aarch64/aarch64-nto.exp: add new test.
        * testsuite/ld-aarch64/nto-stack-note-3.d: New test.
        * testsuite/ld-aarch64/nto-stack-note.s: New test.
2023-10-13 16:23:39 +02:00
..
config Revert "MIPS: fix some ld testcases with compiler" 2023-06-15 04:45:03 +01:00
ld-aarch64 ld: allow update of existing QNX stack note 2023-10-13 16:23:39 +02:00
ld-alpha Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-arc Revert "arc: Add new linker emulation and scripts for ARCv3 ISA." 2023-09-25 17:02:55 +03:00
ld-arm Fix: ld testsuite: Thumb PLT and GOT tests should be skipped on musl armhf targets 2023-10-05 12:51:53 +01:00
ld-auto-import Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-avr Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-bootstrap ld: Add -z nosectionheader test to bootstrap.exp 2023-06-29 10:29:47 -07:00
ld-bpf Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
ld-cdtest Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-checks Both FAIL and PASS "check sections 2"? 2023-02-21 16:21:42 +10:30
ld-cris PR10957, Missing option to really print section+offset 2023-07-17 08:17:44 +09:30
ld-crx Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-csky Trailing spaces in objdump -r header 2022-05-31 11:25:09 +09:30
ld-ctf kvx: New port. 2023-08-16 14:22:54 +01:00
ld-cygwin Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-d10v Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-discard Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-dynamic Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-elf Fix: ld: Test case pr28158 fails on x86_64-linux-musl when index is > 19 2023-10-05 15:05:15 +01:00
ld-elfcomm Add extra linker warning message about discrepancies between normal and common symbols. 2023-06-07 14:30:13 +01:00
ld-elfvers Fix: ld testsuite: 'Version' pattern grabs 'Version5 EABI', breaking test on arm-linux-musleabihf 2023-10-05 12:13:08 +01:00
ld-elfweak obsolete target tidy 2023-01-02 14:03:22 +10:30
ld-fastcall Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-frv Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-gc Revert "MIPS: fix some ld testcases with compiler" 2023-06-15 04:45:03 +01:00
ld-h8300 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-i386 Fix: ld testsuite: pr22001-1 test segfaults on musl/x86 2023-10-05 12:38:40 +01:00
ld-ia64 PR10957, Missing option to really print section+offset 2023-07-17 08:17:44 +09:30
ld-ifunc kvx: New port. 2023-08-16 14:22:54 +01:00
ld-kvx kvx: New port. 2023-08-16 14:22:54 +01:00
ld-libs ld-libs test on alpha-vms 2023-02-21 16:21:25 +10:30
ld-linkonce Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-loongarch-elf Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
ld-m68hc11 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-m68k Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-mep Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-metag Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-mips-elf MIPS: Support `-gnuabi64' target triplet suffix for 64-bit Linux targets 2023-07-28 06:00:37 +01:00
ld-misc Re: Add some expected failures for bfin linker tests 2023-06-15 11:45:03 +09:30
ld-mmix Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-mn10300 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-msp430-elf objdump -D of bss sections and -s with -j 2023-02-11 16:43:54 +10:30
ld-nds32 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-nios2 Trailing spaces in objdump -r header 2022-05-31 11:25:09 +09:30
ld-or1k Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-pdp11 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-pe Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
ld-pie Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-plugin PR10957, Missing option to really print section+offset 2023-07-17 08:17:44 +09:30
ld-powerpc PR30697, ppc32 mix of local-dynamic and global-dynamic TLS 2023-08-04 17:59:01 +09:30
ld-pru Trailing spaces in objdump -r header 2022-05-31 11:25:09 +09:30
ld-riscv-elf RISC-V: move various alias entries 2023-09-01 12:26:46 +02:00
ld-s12z Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-s390 IBM zSystems: Fix offset relative to static TLS 2023-01-10 14:34:16 +01:00
ld-scripts kvx: New port. 2023-08-16 14:22:54 +01:00
ld-selective Revert "MIPS: fix some ld testcases with compiler" 2023-06-15 04:45:03 +01:00
ld-sframe Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-sh Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-shared Fix: ld testsuite: non-PIC shared tests fail on powerpc-linux-musl 2023-10-05 13:52:56 +01:00
ld-size Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-sparc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-spu objdump -D of bss sections and -s with -j 2023-02-11 16:43:54 +10:30
ld-srec Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-tic6x Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-tilegx Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-tilepro Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-undefined MIPS: Support `-gnuabi64' target triplet suffix for 64-bit Linux targets 2023-07-28 06:00:37 +01:00
ld-unique Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-v850 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-vax-elf Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-visium Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-vsb Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-vxworks Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-x86-64 x86-64: Add -z mark-plt and -z nomark-plt 2023-09-29 07:58:53 -07:00
ld-xstormy16 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-xtensa bfd: xtensa: fix __stop_SECTION literal drop 2023-02-23 10:48:16 +00:00
ld-z8k Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-z80 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
lib ld: ld-lib.exp: log failed dump.out contents for debugging 2023-08-17 05:21:02 +01:00
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-9303