[Bug 216316] objcopy (elfcopy) in 11 appears to have a regression compared to the version in 10
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 31 00:03:19 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216316
--- Comment #8 from Ed Maste <emaste at freebsd.org> ---
It appears that each section is copied to the output binary at an offset
specified by the section's Addr, in an some (unspecified) order - i.e., both
.textdata and .zinfo specify an address of 0, and the output is .textdata
overlaid with .zinfo.
[ 6] .textdata PROGBITS 00000000 001830 0c9ec8 00 WAX 0 0
4
[ 8] .zinfo PROGBITS 00000000 0cb6f8 000080 00 A 0 0
1
$ readelf -x .zinfo ipxe.pxe.tmp | less
Hex dump of section '.zinfo':
0x00000000 434f5059 00000000 b10c0000 10000000 COPY............
...
0x00000070 41444457 db030000 10000000 00000000 ADDW............
$ readelf -x .textdata ipxe.pxe.tmp
Hex dump of section '.textdata':
0x00000000 00000000 8b542404 8b042489 02896204 .....T$...$...b.
...
0x00000070 68830000 0089c1ba 3f000000 e8cac002 h.......?.......
0x00000080 00c9c353 89c389d0 0fb75260 895314c6 ...S......R`.S..
0x00000090 431800ba 01000000 e8adab01 00b9fff0 C...............
...
0x000c9ec0 d5570300 dd520300 .W...R..
$ hexdump -Cv output
00000000 43 4f 50 59 00 00 00 00 b1 0c 00 00 10 00 00 00 |COPY............|
...
00000070 41 44 44 57 db 03 00 00 10 00 00 00 00 00 00 00 |ADDW............|
00000080 00 c9 c3 53 89 c3 89 d0 0f b7 52 60 89 53 14 c6 |...S......R`.S..|
...
000c9ec0 d5 57 03 00 dd 52 03 00 |.W...R..|
000c9ec8
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list