Date: Sun, 31 Jan 2021 00:03:18 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 216316] objcopy (elfcopy) in 11 appears to have a regression compared to the version in 10 Message-ID: <bug-216316-29464-Rm0VO6I9uk@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-216316-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-216316-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216316 --- Comment #8 from Ed Maste <emaste@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=20 4 [ 8] .zinfo PROGBITS 00000000 0cb6f8 000080 00 A 0 = 0=20 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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216316-29464-Rm0VO6I9uk>