aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-09-22 11:05:27 +0000
committerAlan Modra <amodra@gmail.com>2006-09-22 11:05:27 +0000
commit3aeeedbb71f648211ae2efde0d0cf4b24abcefe1 (patch)
treeb426e937318e978e0f9fbc26656807bb8713168c /gas/config/tc-ppc.h
parent637ea4ae1f0deac170ed7589f0cec6e55291df3e (diff)
downloadgdb-3aeeedbb71f648211ae2efde0d0cf4b24abcefe1.zip
gdb-3aeeedbb71f648211ae2efde0d0cf4b24abcefe1.tar.gz
gdb-3aeeedbb71f648211ae2efde0d0cf4b24abcefe1.tar.bz2
* config/tc-ppc.c (md_section_align): Don't round up address for ELF.
(ppc_handle_align): New function. * config/tc-ppc.h (HANDLE_ALIGN): Use ppc_handle_align. (SUB_SEGMENT_ALIGN): Define as zero.
Diffstat (limited to 'gas/config/tc-ppc.h')
-rw-r--r--gas/config/tc-ppc.h33
1 files changed, 7 insertions, 26 deletions
diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h
index 5a43420..e9cce7f 100644
--- a/gas/config/tc-ppc.h
+++ b/gas/config/tc-ppc.h
@@ -1,6 +1,6 @@
/* tc-ppc.h -- Header file for tc-ppc.c.
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
- 2004, 2005 Free Software Foundation, Inc.
+ 2004, 2005, 2006 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support.
This file is part of GAS, the GNU Assembler.
@@ -78,31 +78,12 @@ extern char *ppc_target_format PARAMS ((void));
#define MAX_MEM_FOR_RS_ALIGN_CODE 4
#define HANDLE_ALIGN(FRAGP) \
- if ((FRAGP)->fr_type == rs_align_code) \
- { \
- valueT count = ((FRAGP)->fr_next->fr_address \
- - ((FRAGP)->fr_address + (FRAGP)->fr_fix)); \
- if (count != 0 && (count & 3) == 0) \
- { \
- char *dest = (FRAGP)->fr_literal + (FRAGP)->fr_fix; \
- \
- (FRAGP)->fr_var = 4; \
- if (target_big_endian) \
- { \
- *dest++ = 0x60; \
- *dest++ = 0; \
- *dest++ = 0; \
- *dest++ = 0; \
- } \
- else \
- { \
- *dest++ = 0; \
- *dest++ = 0; \
- *dest++ = 0; \
- *dest++ = 0x60; \
- } \
- } \
- }
+ if ((FRAGP)->fr_type == rs_align_code) \
+ ppc_handle_align (FRAGP);
+
+extern void ppc_handle_align (struct frag *);
+
+#define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0
#define md_frag_check(FRAGP) \
if ((FRAGP)->has_code \