projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set page_size to 1 instead of 0 in the case file alignment value is zero.
[deliverable/binutils-gdb.git]
/
bfd
/
coffcode.h
diff --git
a/bfd/coffcode.h
b/bfd/coffcode.h
index e2c27f051a5ae3d1542d5441e5d3a764585a80a6..ccac05bcaec0bf614f28d386e6b90134ce67cdb2 100644
(file)
--- a/
bfd/coffcode.h
+++ b/
bfd/coffcode.h
@@
-3014,6
+3014,11
@@
coff_compute_section_file_positions (abfd)
if (coff_data (abfd)->link_info)
{
page_size = pe_data (abfd)->pe_opthdr.FileAlignment;
if (coff_data (abfd)->link_info)
{
page_size = pe_data (abfd)->pe_opthdr.FileAlignment;
+
+ /* If no file alignment has been set, default to one.
+ This repairs 'ld -r' for arm-wince-pe target. */
+ if (page_size == 0)
+ page_size = 1;
}
else
page_size = PE_DEF_FILE_ALIGNMENT;
}
else
page_size = PE_DEF_FILE_ALIGNMENT;
This page took
0.03658 seconds
and
4
git commands to generate.