mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-03-03 06:58:15 +00:00
gas/
* config/tc-arm.c (arm_copy_symbol_attributes): New. * config/tc-arm.h (arm_copy_symbol_attributes): Declare. (TC_COPY_SYMBOL_ATTRIBUTES): Define. * gas/symbols.c (copy_symbol_attributes): Use TC_COPY_SYMBOL_ATTRIBUTES. gas/testsuite/ * gas/arm/thumbver.d, gas/arm/thumbver.s: New test.
This commit is contained in:
parent
4cbdee8aa5
commit
794ba86ab2
@ -1,3 +1,11 @@
|
||||
2007-03-14 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* config/tc-arm.c (arm_copy_symbol_attributes): New.
|
||||
* config/tc-arm.h (arm_copy_symbol_attributes): Declare.
|
||||
(TC_COPY_SYMBOL_ATTRIBUTES): Define.
|
||||
* gas/symbols.c (copy_symbol_attributes): Use
|
||||
TC_COPY_SYMBOL_ATTRIBUTES.
|
||||
|
||||
2007-03-14 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* config/tc-arm.c (T16_32_TAB): Fix dec_sp encoding.
|
||||
|
@ -20527,3 +20527,9 @@ s_arm_fpu (int ignored ATTRIBUTE_UNUSED)
|
||||
ignore_rest_of_line ();
|
||||
}
|
||||
|
||||
/* Copy symbol information. */
|
||||
void
|
||||
arm_copy_symbol_attributes (symbolS *dest, symbolS *src)
|
||||
{
|
||||
ARM_GET_FLAG (dest) = ARM_GET_FLAG (src);
|
||||
}
|
||||
|
@ -141,6 +141,12 @@ bfd_boolean arm_is_eabi (void);
|
||||
#define ARM_SET_INTERWORK(s,t) ((t) ? ARM_SET_FLAG (s, ARM_FLAG_INTERWORK) : ARM_RESET_FLAG (s, ARM_FLAG_INTERWORK))
|
||||
#define THUMB_SET_FUNC(s,t) ((t) ? ARM_SET_FLAG (s, THUMB_FLAG_FUNC) : ARM_RESET_FLAG (s, THUMB_FLAG_FUNC))
|
||||
|
||||
void arm_copy_symbol_attributes (symbolS *, symbolS *);
|
||||
#ifndef TC_COPY_SYMBOL_ATTRIBUTES
|
||||
#define TC_COPY_SYMBOL_ATTRIBUTES(DEST, SRC) \
|
||||
(arm_copy_symbol_attributes (DEST, SRC))
|
||||
#endif
|
||||
|
||||
#define TC_START_LABEL(C,STR) (c == ':' || (c == '/' && arm_data_in_code ()))
|
||||
#define tc_canonicalize_symbol_name(str) arm_canonicalize_symbol_name (str);
|
||||
#define obj_adjust_symtab() arm_adjust_symtab ()
|
||||
|
@ -1947,6 +1947,10 @@ copy_symbol_attributes (symbolS *dest, symbolS *src)
|
||||
#ifdef OBJ_COPY_SYMBOL_ATTRIBUTES
|
||||
OBJ_COPY_SYMBOL_ATTRIBUTES (dest, src);
|
||||
#endif
|
||||
|
||||
#ifdef TC_COPY_SYMBOL_ATTRIBUTES
|
||||
TC_COPY_SYMBOL_ATTRIBUTES (dest, src);
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -1,3 +1,7 @@
|
||||
2007-03-14 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* gas/arm/thumbver.d, gas/arm/thumbver.s: New test.
|
||||
|
||||
2007-03-14 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* gas/arm/thumb2_add.d: Add tests using sp.
|
||||
|
15
gas/testsuite/gas/arm/thumbver.d
Normal file
15
gas/testsuite/gas/arm/thumbver.d
Normal file
@ -0,0 +1,15 @@
|
||||
# as: -meabi=4
|
||||
# readelf: -s
|
||||
# This test is only valid on ELF based ports.
|
||||
#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
|
||||
|
||||
Symbol table '\.symtab' contains .* entries:
|
||||
Num: Value Size Type Bind Vis Ndx Name
|
||||
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
|
||||
1: 00000000 0 SECTION LOCAL DEFAULT 1
|
||||
#...
|
||||
.*: 00000001 0 FUNC LOCAL DEFAULT 1 a_alias
|
||||
.*: 00000001 0 FUNC LOCAL DEFAULT 1 a_body
|
||||
.*: 00000000 0 NOTYPE LOCAL DEFAULT 1 \$t
|
||||
.*: 00000001 0 FUNC LOCAL DEFAULT 1 a_export@VERSION
|
||||
#...
|
9
gas/testsuite/gas/arm/thumbver.s
Normal file
9
gas/testsuite/gas/arm/thumbver.s
Normal file
@ -0,0 +1,9 @@
|
||||
@ Check that symbols created by .symver are marked as Thumb.
|
||||
|
||||
.thumb_set a_alias, a_body
|
||||
.symver a_alias, a_export@VERSION
|
||||
.type a_body, %function
|
||||
.code 16
|
||||
.thumb_func
|
||||
a_body:
|
||||
nop
|
Loading…
x
Reference in New Issue
Block a user