Apply Nick Clifton's suggestion.
[deliverable/binutils-gdb.git] / gas / config / tc-sh.h
index f4278c206226a3cff30a256b0b8be2632693e0c1..f5ab8a918295c65e9ce654e3203932fe21bf67f3 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is tc-sh.h
-   Copyright (C) 1993, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1993, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -129,14 +129,20 @@ extern void sh_coff_reloc_mangle
 #define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep(frag)
 extern int tc_coff_sizemachdep PARAMS ((fragS *));
 
+#ifdef BFD_ASSEMBLER
+#define SEG_NAME(SEG) segment_name (SEG)
+#else
+#define SEG_NAME(SEG) obj_segment_name (SEG)
+#endif
+
 /* We align most sections to a 16 byte boundary.  */
-#define SUB_SEGMENT_ALIGN(SEG)                                 \
-  (strncmp (obj_segment_name (SEG), ".stabstr", 8) == 0                \
-   ? 0                                                         \
-   : ((strncmp (obj_segment_name (SEG), ".stab", 5) == 0       \
-       || strcmp (obj_segment_name (SEG), ".ctors") == 0       \
-       || strcmp (obj_segment_name (SEG), ".dtors") == 0)      \
-      ? 2                                                      \
+#define SUB_SEGMENT_ALIGN(SEG)                         \
+  (strncmp (SEG_NAME (SEG), ".stabstr", 8) == 0                \
+   ? 0                                                 \
+   : ((strncmp (SEG_NAME (SEG), ".stab", 5) == 0       \
+       || strcmp (SEG_NAME (SEG), ".ctors") == 0       \
+       || strcmp (SEG_NAME (SEG), ".dtors") == 0)      \
+      ? 2                                              \
       : (sh_small ? 2 : 4)))
 
 #endif /* OBJ_COFF */
@@ -149,6 +155,9 @@ extern int target_big_endian;
 
 #define TARGET_FORMAT (shl ? "elf32-shl" : "elf32-sh")
 
+#define elf_tc_final_processing sh_elf_final_processing
+extern void sh_elf_final_processing PARAMS ((void));
+
 #endif /* OBJ_ELF */
 
 /* end of tc-sh.h */
This page took 0.024499 seconds and 4 git commands to generate.