+2015-12-08 Jan Beulich <jbeulich@suse.com>
+
+ * config/obj-elf.c (elf_file_symbol): Tighten condition for
+ moving BSF_FILE symbols.
+
2015-12-08 DJ Delorie <dj@redhat.com>
* config/rl78-parse.y: Make all branches relaxable via
symbol_get_bfdsym (sym)->flags |= BSF_FILE;
- if (symbol_rootP != sym)
+ if (symbol_rootP != sym
+ && (symbol_rootP->bsym == NULL
+ || !(symbol_rootP->bsym->flags & BSF_FILE)))
{
symbol_remove (sym, &symbol_rootP, &symbol_lastP);
symbol_insert (sym, symbol_rootP, &symbol_rootP, &symbol_lastP);
+ }
+
#ifdef DEBUG
- verify_symbol_chain (symbol_rootP, symbol_lastP);
+ verify_symbol_chain (symbol_rootP, symbol_lastP);
#endif
- }
}
#ifdef NEED_ECOFF_DEBUG
+2015-12-08 Jan Beulich <jbeulich@suse.com>
+
+ * gas/elf/file-2.s, gas/elf/file-2.d: New.
+ * gas/elf/elf.exp: Run new test.
+ * gas/elf/file.d: Adjust expectations.
+ * gas/i386/ilp32/elf/file.d: Likewise.
+
2015-12-04 Nick Clifton <nickc@redhat.com>
PR gas/19276
run_dump_test "file"
}
}
+ run_dump_test "file-2"
setup_xfail "nds32*-*-*"
run_dump_test "group0a"
run_dump_test "group0b"
--- /dev/null
+#objdump: -t
+#name: .file file names ordering
+
+.*: .*
+
+SYMBOL TABLE:
+0+ l[ ]*df \*ABS\*[ ]+0+ file-2\.s
+#...
+0+ l[ ]*\.text[ ]+0+ local1
+0+ l[ ]*df \*ABS\*[ ]+0+ aux-1\.s
+0+ l[ ]*\.text[ ]+0+ local2
+0+ l[ ]*df \*ABS\*[ ]+0+ aux-2\.s
+0+ l[ ]*\.text[ ]+0+ local3
+#pass
--- /dev/null
+ .file "file-2.s"
+ .text
+local1:
+ .file "aux-1.s"
+local2:
+ .file "aux-2.s"
+local3:
.*: .*
SYMBOL TABLE:
+0+ l[ ]*df \*ABS\*[ ]+0+ ~tilde
#...
-0+ l[ ]*df \*ABS\*[ ]+0+ file\.s
-0+ l[ ]*df \*ABS\*[ ]+0+ slash/data
-0+ l[ ]*df \*ABS\*[ ]+0+ \{braces\}
-0+ l[ ]*df \*ABS\*[ ]+0+ \[brackets\]
-0+ l[ ]*df \*ABS\*[ ]+0+ /dir/file\.s
-0+ l[ ]*df \*ABS\*[ ]+0+ :colon
-0+ l[ ]*df \*ABS\*[ ]+0+ UPPER
-0+ l[ ]*df \*ABS\*[ ]+0+ lower
0+ l[ ]*df \*ABS\*[ ]+0+ hash\#
-0+ l[ ]*df \*ABS\*[ ]+0+ ~tilde
+0+ l[ ]*df \*ABS\*[ ]+0+ lower
+0+ l[ ]*df \*ABS\*[ ]+0+ UPPER
+0+ l[ ]*df \*ABS\*[ ]+0+ :colon
+0+ l[ ]*df \*ABS\*[ ]+0+ /dir/file\.s
+0+ l[ ]*df \*ABS\*[ ]+0+ \[brackets\]
+0+ l[ ]*df \*ABS\*[ ]+0+ \{braces\}
+0+ l[ ]*df \*ABS\*[ ]+0+ slash/data
+0+ l[ ]*df \*ABS\*[ ]+0+ file\.s
#pass
.*: .*
SYMBOL TABLE:
+0+ l[ ]*df \*ABS\*[ ]+0+ ~tilde
#...
-0+ l[ ]*df \*ABS\*[ ]+0+ file\.s
-0+ l[ ]*df \*ABS\*[ ]+0+ slash/data
-0+ l[ ]*df \*ABS\*[ ]+0+ \{braces\}
-0+ l[ ]*df \*ABS\*[ ]+0+ \[brackets\]
-0+ l[ ]*df \*ABS\*[ ]+0+ /dir/file\.s
-0+ l[ ]*df \*ABS\*[ ]+0+ :colon
-0+ l[ ]*df \*ABS\*[ ]+0+ UPPER
-0+ l[ ]*df \*ABS\*[ ]+0+ lower
0+ l[ ]*df \*ABS\*[ ]+0+ hash\#
-0+ l[ ]*df \*ABS\*[ ]+0+ ~tilde
+0+ l[ ]*df \*ABS\*[ ]+0+ lower
+0+ l[ ]*df \*ABS\*[ ]+0+ UPPER
+0+ l[ ]*df \*ABS\*[ ]+0+ :colon
+0+ l[ ]*df \*ABS\*[ ]+0+ /dir/file\.s
+0+ l[ ]*df \*ABS\*[ ]+0+ \[brackets\]
+0+ l[ ]*df \*ABS\*[ ]+0+ \{braces\}
+0+ l[ ]*df \*ABS\*[ ]+0+ slash/data
+0+ l[ ]*df \*ABS\*[ ]+0+ file\.s
#pass