https://sourceware.org/bugzilla/show_bug.cgi?id=30561
Bug ID: 30561 Summary: conversion from binary to PE broken Product: binutils Version: 2.40 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: stsp at users dot sourceforge.net Target Milestone: --- $ objcopy -I binary -O pe-x86-64 /etc/resolv.conf tst.o $ file tst.o tst.o: data Same for pe-i386. Looking into the resulting file, it seems to contain the needed symbols, like _binary__etc_resolv_conf_start _binary__etc_resolv_conf_end _binary__etc_resolv_conf_size. It seems like the PE header is wrong. When converting from something else than a binary, or when converting a binary to elf, then things work as expected. -- You are receiving this mail because: You are on the CC list for the bug.