public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* {Patch] }Treat avr as elf target in nm.exp
@ 2016-04-23 17:54 Senthil Kumar Selvaraj
  2016-04-25  3:46 ` Alan Modra
  2016-04-25  8:26 ` Nick Clifton
  0 siblings, 2 replies; 4+ messages in thread
From: Senthil Kumar Selvaraj @ 2016-04-23 17:54 UTC (permalink / raw)
  To: Binutils; +Cc: Denis Chertykov, Nick Clifton


Hi,

  This patch adds avr to the list of ELF targets in nm.exp - without
  this, the nm --size-sort test fails for the AVR target, as it uses
  nm-1.s as the source file, instead of nm-elf-1.s (which has the .size
  directive to set symbol size).

  I tried adding avr-unknown-none to is_elf_format itself, but that
  causes a lot of failures in gas and LD, just as the comment says :)
  I intend to follow up on those failures as well, but until then, this
  patch lets the specific testcase pass.

Regards
Senthil


binutils/testsuite/ChangeLog

2016-04-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	* binutils-all/nm.exp: Add avr to elf
	target list.


diff --git a/binutils/testsuite/binutils-all/nm.exp b/binutils/testsuite/binutils-all/nm.exp
index 94f7f9c..34454f8 100644
--- a/binutils/testsuite/binutils-all/nm.exp
+++ b/binutils/testsuite/binutils-all/nm.exp
@@ -163,6 +163,7 @@ if [regexp $want $got] then {
 # all the ELF variants, but adding the patterns here to that proc then
 # introduces a whole slew of new regressions in the GAS and LD testsuites.
 if {   [is_elf_format]
+    || [istarget avr-unknown-none]
     || [istarget *-*-dragonfly*]
     || [istarget *-*-*elf]
     || [istarget *-*-freebsd*]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-25  9:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-23 17:54 {Patch] }Treat avr as elf target in nm.exp Senthil Kumar Selvaraj
2016-04-25  3:46 ` Alan Modra
2016-04-25  8:26 ` Nick Clifton
2016-04-25  9:28   ` Senthil Kumar Selvaraj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).