[PATCH] Split two .section directives into separate asm statements
Fred Fish
fnf@intrinsity.com
Mon Sep 9 17:32:00 GMT 2002
While trying to build a mipsisa32-elf toolchain the assembler chokes
on the asm emitted by __make_section_allocated. This patch fixes it.
-Fred
2002-08-31 Fred Fish <fnf@intrinsity.com>
* libnosys/warning.h (__make_section_unallocated): Use
two asm functions, not one with two separate pseudos.
The current mips assembler chokes on that.
Index: libnosys/warning.h
===================================================================
RCS file: /mips/newtools/redhat/newlib/libgloss/libnosys/warning.h,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -c -p -r1.1.1.2 -r1.2
*** libnosys/warning.h 2002/07/02 13:32:19 1.1.1.2
--- libnosys/warning.h 2002/08/31 05:58:52 1.2
***************
*** 7,13 ****
/* We want the .gnu.warning.SYMBOL section to be unallocated. */
# ifdef HAVE_ASM_PREVIOUS_DIRECTIVE
# define __make_section_unallocated(section_string) \
! asm(".section " section_string "; .previous");
# elif defined (HAVE_ASM_POPSECTION_DIRECTIVE)
# define __make_section_unallocated(section_string) \
asm(".pushsection " section_string "; .popsection");
--- 7,13 ----
/* We want the .gnu.warning.SYMBOL section to be unallocated. */
# ifdef HAVE_ASM_PREVIOUS_DIRECTIVE
# define __make_section_unallocated(section_string) \
! asm(".section " section_string); asm(".previous");
# elif defined (HAVE_ASM_POPSECTION_DIRECTIVE)
# define __make_section_unallocated(section_string) \
asm(".pushsection " section_string "; .popsection");
More information about the Newlib
mailing list