mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-12 12:16:04 +08:00
2c3cc81e06
PR 29135 * nm.c (non_weak): New variable. (filter_symbols): When non-weak is true, ignore weak symbols. (long_options): Add --no-weak. (usage): Mention --no-weak. (main): Handle -W/--no-weak. * doc/binutils.texi: Document new feature. * NEWS: Mention the new feature. * testsuite/binutils-all/nm.exp: Add test of new feature. * testsuite/binutils-all/no-weak.s: New test source file.
14 lines
209 B
ArmAsm
14 lines
209 B
ArmAsm
.file "no-weak.c"
|
|
.text
|
|
|
|
.globl weak_with_default_value
|
|
.weak weak_with_default_value
|
|
weak_with_default_value:
|
|
.nop
|
|
|
|
.data
|
|
.weak weak_without_default_value
|
|
.dc.a weak_without_default_value
|
|
|
|
|