old-cross-binutils/binutils/testsuite/binutils-all/localize-hidden-1.s
Richard Sandiford d58c2e3acd binutils/
* objcopy.c (localize_hidden): New variable.
	(OPTION_LOCALIZE_HIDDEN): New command_line_switch value.
	(copy_options): Add --localize-hidden.
	(copy_usage): Mention --localize-hidden.
	(is_hidden_symbol): New function.
	(filter_symbols): Handle localize_hidden.
	(copy_object): Call filter_symbols if localize_hidden.
	(copy_main): Handle OPTION_LOCALIZE_HIDDEN.
	* doc/binutils.texi (--localize-hidden): Document new option.

binutils/testsuite/
	* binutils-all/localize-hidden-1.s,
	* binutils-all/localize-hidden-1.d,
	* binutils-all/localize-hidden-2.s,
	* binutils-all/localize-hidden-2.d: New tests.
	* binutils-all/objcopy.exp: Run them.
2006-06-23 16:23:09 +00:00

36 lines
631 B
ArmAsm

.globl Gdefault
.globl Ghidden
.globl Ginternal
.globl Gprotected
.weak Wdefault
.weak Whidden
.weak Winternal
.weak Wprotected
.hidden Lhidden
.hidden Ghidden
.hidden Whidden
.internal Linternal
.internal Ginternal
.internal Winternal
.protected Lprotected
.protected Gprotected
.protected Wprotected
.equ Ldefault, 0x1100
.equ Lhidden, 0x1200
.equ Linternal, 0x1300
.equ Lprotected, 0x1400
.equ Gdefault, 0x2100
.equ Ghidden, 0x2200
.equ Ginternal, 0x2300
.equ Gprotected, 0x2400
.equ Wdefault, 0x3100
.equ Whidden, 0x3200
.equ Winternal, 0x3300
.equ Wprotected, 0x3400