mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 14:53:32 +08:00
38f14ab8fc
bfd/ * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c, * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c, * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c, * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c, * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c, * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c, * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c, * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize error/warning messages. ld/ * testsuite/ld-cris/pcrelcp-1.d, * testsuite/ld-mmix/start-2.d: Update.
34 lines
1.4 KiB
Makefile
34 lines
1.4 KiB
Makefile
#as: --no-underscore --em=criself
|
|
#ld: -shared -m crislinux -z nocombreloc
|
|
#ld_after_inputfiles: tmpdir/libdso-1b.so
|
|
#warning: \A[^\n]*\.o, section `.text', to symbol `expfn@@TST2':[^\n]*recompile with -fPIC\Z
|
|
#readelf: -a
|
|
|
|
# Building a DSO with (unrecommended) non-pic pc-relative references
|
|
# to a versioned symbol in a library got caught by an assert in
|
|
# elf_cris_copy_indirect_symbol wherein the list of pc-relative
|
|
# references wasn't merged, but simply asserted to be NULL before
|
|
# copied to, on the merged-to (direct) symbol. For versioned symbols,
|
|
# there was an "extra" copy made, to make a base-version symbol, where
|
|
# the copied-from pc-relative list was NULL but the copied-to symbol
|
|
# already had a list merged.
|
|
|
|
# The list was used to emit warning messages, but incorrectly held the
|
|
# relocation section for the reference, resulting in warnings being
|
|
# emitted for any section with a pc-relative relocation.
|
|
|
|
# The test checks that there's a warning message only for the
|
|
# read-only sections section (.text) (not the read-write sections),
|
|
# that the correct number of relocations is emitted and we also check
|
|
# for the TEXTREL dynamic marker.
|
|
|
|
#...
|
|
0x00000016 \(TEXTREL\)[ ]+0x0
|
|
#...
|
|
Relocation section '\.rela\.text' at offset .* contains 4 entries:
|
|
#...
|
|
Relocation section '\.rela\.data' at offset .* contains 8 entries:
|
|
#...
|
|
Relocation section '.rela.data2' at offset .* contains 16 entries:
|
|
#pass
|