From 1a775419385ff3b5407b215708e511973d821bab Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 29 Oct 2010 00:15:46 +0000 Subject: bfd: 2010-10-29 Bernd Schmidt Joseph Myers * elf32-tic6x.c (elf32_tic6x_merge_attributes): Check for mismatch of DSBT attributes. binutils: 2010-10-29 Bernd Schmidt Joseph Myers * readelf.c (display_tic6x_attribute): Handle Tag_ABI_DSBT. gas: 2010-10-29 Bernd Schmidt Joseph Myers * config/tc-tic6x.c (OPTION_MDSBT, OPTION_MNO_DSBT): New enum values. (md_longopts): Add mdsbt and mno-dsbt. (tic6x_dsbt): New static variable. (md_parse_option): Handle OPTION_MDSBT and OPTION_MNO_DSBT. (md_show_usage): Output help text for -mdsbt and -mno-dsbt. (TAG): Add comma at the end. (tic6x_set_attributes): Set Tag_ABI_DSBT. * doc/as.texinfo: Document -mdsbt and -mno-dsbt. * doc/c-tic6x.texi (TIC6X Options): Likewise. (TIC6X Directives): Mention Tag_ABI_DSBT. gas/testsuite: 2010-10-29 Bernd Schmidt Joseph Myers * gas/tic6x/attr-dsbt-directive-1.d, gas/tic6x/attr-dsbt-directive-1.s, gas/tic6x/attr-dsbt-directive-2.d, gas/tic6x/attr-dsbt-directive-2.s, gas/tic6x/attr-dsbt-opts-mdsbt.d, gas/tic6x/attr-dsbt-opts-mno-dsbt.d: New tests. include/elf: 2010-10-29 Bernd Schmidt Joseph Myers * tic6x-attrs.h (Tag_ABI_DSBT): New. ld/testsuite: 2010-10-29 Bernd Schmidt Joseph Myers * ld-tic6x/attr-dsbt-0.s, ld-tic6x/attr-dsbt-00.d, ld-tic6x/attr-dsbt-01.d, ld-tic6x/attr-dsbt-1.s, ld-tic6x/attr-dsbt-10.d, ld-tic6x/attr-dsbt-11.d: New tests. --- ld/testsuite/ChangeLog | 7 +++++++ ld/testsuite/ld-tic6x/attr-dsbt-0.s | 1 + ld/testsuite/ld-tic6x/attr-dsbt-00.d | 10 ++++++++++ ld/testsuite/ld-tic6x/attr-dsbt-01.d | 6 ++++++ ld/testsuite/ld-tic6x/attr-dsbt-1.s | 1 + ld/testsuite/ld-tic6x/attr-dsbt-10.d | 6 ++++++ ld/testsuite/ld-tic6x/attr-dsbt-11.d | 11 +++++++++++ 7 files changed, 42 insertions(+) create mode 100644 ld/testsuite/ld-tic6x/attr-dsbt-0.s create mode 100644 ld/testsuite/ld-tic6x/attr-dsbt-00.d create mode 100644 ld/testsuite/ld-tic6x/attr-dsbt-01.d create mode 100644 ld/testsuite/ld-tic6x/attr-dsbt-1.s create mode 100644 ld/testsuite/ld-tic6x/attr-dsbt-10.d create mode 100644 ld/testsuite/ld-tic6x/attr-dsbt-11.d (limited to 'ld/testsuite') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index c6771a66d4..246deefb76 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2010-10-29 Bernd Schmidt + Joseph Myers + + * ld-tic6x/attr-dsbt-0.s, ld-tic6x/attr-dsbt-00.d, + ld-tic6x/attr-dsbt-01.d, ld-tic6x/attr-dsbt-1.s, + ld-tic6x/attr-dsbt-10.d, ld-tic6x/attr-dsbt-11.d: New tests. + 2010-10-28 Thomas Schwinge * ld-scripts/script.exp: Sort all filename globs. diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-0.s b/ld/testsuite/ld-tic6x/attr-dsbt-0.s new file mode 100644 index 0000000000..abd72e3680 --- /dev/null +++ b/ld/testsuite/ld-tic6x/attr-dsbt-0.s @@ -0,0 +1 @@ +.c6xabi_attribute Tag_ABI_DSBT, 0 diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-00.d b/ld/testsuite/ld-tic6x/attr-dsbt-00.d new file mode 100644 index 0000000000..c49752de6f --- /dev/null +++ b/ld/testsuite/ld-tic6x/attr-dsbt-00.d @@ -0,0 +1,10 @@ +#name: C6X DSBT attribute merging, 0 0 +#as: -mlittle-endian +#ld: -r -melf32_tic6x_le +#source: attr-dsbt-0.s +#source: attr-dsbt-0.s +#readelf: -A + +Attribute Section: c6xabi +File Attributes + Tag_ISA: C674x diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-01.d b/ld/testsuite/ld-tic6x/attr-dsbt-01.d new file mode 100644 index 0000000000..5f534a71d9 --- /dev/null +++ b/ld/testsuite/ld-tic6x/attr-dsbt-01.d @@ -0,0 +1,6 @@ +#name: C6X DSBT attribute merging, 0 1 +#as: -mlittle-endian +#ld: -r -melf32_tic6x_le +#source: attr-dsbt-0.s +#source: attr-dsbt-1.s +#warning: .*differ in whether code is compiled for DSBT diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-1.s b/ld/testsuite/ld-tic6x/attr-dsbt-1.s new file mode 100644 index 0000000000..75c972e106 --- /dev/null +++ b/ld/testsuite/ld-tic6x/attr-dsbt-1.s @@ -0,0 +1 @@ +.c6xabi_attribute Tag_ABI_DSBT, 1 diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-10.d b/ld/testsuite/ld-tic6x/attr-dsbt-10.d new file mode 100644 index 0000000000..283efab134 --- /dev/null +++ b/ld/testsuite/ld-tic6x/attr-dsbt-10.d @@ -0,0 +1,6 @@ +#name: C6X DSBT attribute merging, 1 0 +#as: -mlittle-endian +#ld: -r -melf32_tic6x_le +#source: attr-dsbt-1.s +#source: attr-dsbt-0.s +#warning: .*differ in whether code is compiled for DSBT diff --git a/ld/testsuite/ld-tic6x/attr-dsbt-11.d b/ld/testsuite/ld-tic6x/attr-dsbt-11.d new file mode 100644 index 0000000000..d004c10c7d --- /dev/null +++ b/ld/testsuite/ld-tic6x/attr-dsbt-11.d @@ -0,0 +1,11 @@ +#name: C6X DSBT attribute merging, 1 1 +#as: -mlittle-endian +#ld: -r -melf32_tic6x_le +#source: attr-dsbt-1.s +#source: attr-dsbt-1.s +#readelf: -A + +Attribute Section: c6xabi +File Attributes + Tag_ISA: C674x + Tag_ABI_DSBT: DSBT addressing used -- cgit v1.2.1