Bug 4041 - Objcopy doesn't remove empty program header
Summary: Objcopy doesn't remove empty program header
Status: RESOLVED WONTFIX
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.18
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-14 14:52 UTC by H.J. Lu
Modified: 2007-02-16 23:28 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2007-02-14 14:52:01 UTC
From

http://sourceware.org/bugzilla/show_bug.cgi?id=4007

Something completely different, when using the linux patch I posted on LKM,
where a new program header is created for this section, and is removed if i want
to get rid of the section .realmode completely because I want to generate the
old target, you can ask me the question:
[etienne@localhost linux-2.6.20-gujin]$ objcopy -R .note -R .comment -R .realmode -S
vmlinux vmlinux.tmp
BFD: vmlinux: warning: Empty loadable segment detected, is this intentional ?

[etienne@localhost linux-2.6.20-gujin]$
 My answer is that it is not needed to keep this empty loadable segment, you can
strip it.
 I do not care of the warning because that command is used "-O binary" by Linux
Makefile and does not produce the warning.
Comment 1 H.J. Lu 2007-02-16 23:28:11 UTC
It is informational, nothing more.