bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/30561] New: conversion from binary to PE broken


From: stsp at users dot sourceforge.net
Subject: [Bug binutils/30561] New: conversion from binary to PE broken
Date: Fri, 16 Jun 2023 19:07:34 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]