2003-05-01  H.J. Lu <hjl@gnu.org>

	* config/tc-ia64.h (tc_canonicalize_section_name): New.

	* config/obj-elf.c (obj_elf_section_name): Call
	tc_canonicalize_section_name if it is defined.

gas/testsuite/

2003-05-01  H.J. Lu <hjl@gnu.org>

	* gas/ia64/ia64.exp: Add secname.

	* gas/ia64/secname.s: New. Test the trailing '#' in section
	name.
	* gas/ia64/secname.d: Likewise.
This commit is contained in:
H.J. Lu
2003-05-02 02:46:36 +00:00
parent 395f4d9b6a
commit 612d7b83dd
7 changed files with 50 additions and 0 deletions

View File

@ -940,6 +940,9 @@ obj_elf_section_name ()
name = xmalloc (end - input_line_pointer + 1);
memcpy (name, input_line_pointer, end - input_line_pointer);
name[end - input_line_pointer] = '\0';
#ifdef tc_canonicalize_section_name
name = tc_canonicalize_section_name (name);
#endif
input_line_pointer = end;
}
SKIP_WHITESPACE ();