2 #readelf
: --notes
--wide
3 #objcopy
: --merge
-notes
4 #name
: merge notes
section (64-bits
)
8 Owner Data size Description
9 [ ]+\
$<version>1[ ]+0x00000008[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN
[ ]+Applies from offset
0x100 \
(file
: note1
.s\
)
10 [ ]+\
$<tool
>gcc
7.0.1[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN
[ ]+Applies from offset
0x100
11 [ ]+\
+<stack prot
>true[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN
[ ]+Applies from offset
0x100
12 [ ]+\
*<PIC
>static[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN
[ ]+Applies from offset
0x100
13 [ ]+\
*<ABI
>0x0[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN
[ ]+Applies from offset
0x100
14 [ ]+\
$<version>1[ ]+0x00000008[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN
[ ]+Applies from offset
0x10. \
(file
: note2
.s\
)
15 [ ]+!<stack prot
>false[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN
[ ]+Applies from offset
0x10.
16 [ ]+\
*<PIC
>pic
[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_FUNC
[ ]+Applies to func at
0x10. \
(func
: func1\
)