blob: 4c1166c083e0363d073fae3f953c24afb38db44d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#PROG: objcopy
#name: objcopy add-symbol
#source: symbols.s
#objcopy: --add-symbol NEW=0x1234 --add-symbol NEW_DATA=.data:0x4321,local
#objdump: --syms
#section_subst: no
.*: +file format .*
SYMBOL TABLE:
#...
(0+04321 l[ ]+.data[ ]+0+00 NEW_DATA|0+01234 g[ ]+\*ABS\*[ ]+0+00 NEW)
#...
(0+01234 g[ ]+\*ABS\*[ ]+0+00 NEW|0+04321 l[ ]+.data[ ]+0+00 NEW_DATA)
#pass
|