binutils-gdb/ld/testsuite
Nick Alcock 69a284867c libctf: support encodings for enums
The previous commit started to error-check the lookup of
ctf_type_encoding for the underlying type that is internally done when
carrying out a ctf_type_encoding on a slice.

Unfortunately, enums have no encoding, so this has historically been
returning an error (which is ignored) and then populating the cte_format
with uninitialized data.  Now the error is not ignored, this is
returning an error, which breaks linking of CTF containing bitfields of
enumerated type.

CTF format v3 does not record the actual underlying type of a enum, but
we can mock up something that is not *too* wrong, and that is at any
rate better than uninitialized data.

ld/ChangeLog
2021-03-18  Nick Alcock  <nick.alcock@oracle.com>

	* testsuite/ld-ctf/slice.c: Check slices of enums too.
	* testsuite/ld-ctf/slice.d: Results adjusted.

libctf/ChangeLog
2021-03-18  Nick Alcock  <nick.alcock@oracle.com>

	* ctf-types.c (ctf_type_encoding): Support, after a fashion, for enums.
	* ctf-dump.c (ctf_dump_format_type): Do not report enums' degenerate
	encoding.
2021-03-18 12:40:41 +00:00
..
config
ld-aarch64
ld-alpha
ld-arc
ld-arm
ld-auto-import
ld-avr
ld-bootstrap
ld-bpf
ld-cdtest ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-checks ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-cris
ld-crx
ld-csky
ld-ctf libctf: support encodings for enums 2021-03-18 12:40:41 +00:00
ld-cygwin
ld-d10v
ld-discard
ld-dynamic
ld-elf PR27128, nm -P portable output format regression 2021-03-01 14:26:39 +10:30
ld-elfcomm ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-elfvers ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-elfvsb ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-elfweak ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-fastcall
ld-frv
ld-gc PE image base fallout 2021-03-12 10:41:34 +10:30
ld-h8300
ld-i386 readelf: Replace procesor with processor 2021-02-20 05:55:42 -08:00
ld-ia64
ld-ifunc ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-libs
ld-linkonce
ld-m68hc11
ld-m68k
ld-mep
ld-metag
ld-mips-elf ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-misc ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-mmix
ld-mn10300 ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-msp430-elf
ld-nds32
ld-nios2
ld-or1k
ld-pdp11
ld-pe ld: adjust PE base relocations testcase 2021-03-09 12:40:13 +01:00
ld-pie
ld-plugin Add PR27441 testcase 2021-02-26 17:49:04 +10:30
ld-powerpc aix: implement TLS relocation for gas and ld 2021-03-12 22:47:33 +10:30
ld-pru
ld-riscv-elf RISC-V: Improve multiple relax passes problem. 2021-03-11 17:27:13 +08:00
ld-s12z
ld-s390
ld-scripts PE image base fallout 2021-03-12 10:41:34 +10:30
ld-selective ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-sh ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-shared ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-size
ld-sparc
ld-spu
ld-srec PE image base fallout 2021-03-12 10:41:34 +10:30
ld-tic6x ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
ld-tilegx
ld-tilepro
ld-undefined bfd: don't silently wrap or truncate PE image section RVAs 2021-03-09 08:52:32 +01:00
ld-unique
ld-v850
ld-vax-elf
ld-visium
ld-vxworks
ld-x86-64 elf/x86-64: Subtract __ImageBase for R_AMD64_IMAGEBASE 2021-03-05 18:25:06 -08:00
ld-xc16x
ld-xstormy16
ld-xtensa
ld-z8k
ld-z80
lib PE image base fallout 2021-03-12 10:41:34 +10:30
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