This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Sorting direction of SORT_BY_ALIGNMENT
- From: nick clifton <nickc at redhat dot com>
- To: Kwok Cheung Yeung <kcy at codesourcery dot com>, binutils at sourceware dot org
- Date: Tue, 30 Apr 2013 13:54:16 +0100
- Subject: Re: Sorting direction of SORT_BY_ALIGNMENT
- References: <517A3738 dot 7040709 at codesourcery dot com>
Hi Kwok,
According to the ld manual (section 3.6.4.2): SORT_BY_ALIGNMENT will
sort sections into ascending order by alignment before placing them in
the output file.
This is a mistake in the documentation. I have checked in the patch
below to update the manual.
Cheers
Nick
ld/ChangeLog
2013-04-30 Nick Clifton <nickc@redhat.com>
* ld.texinfo (SORT_BY_ALIGNMENT): Fix and clarify typo - sections
are sorted by descending order of alignment.
Index: ld/ld.texinfo
===================================================================
RCS file: /cvs/src/src/ld/ld.texinfo,v
retrieving revision 1.297
diff -u -3 -p -r1.297 ld.texinfo
--- ld/ld.texinfo 25 Mar 2013 18:09:04 -0000 1.297
+++ ld/ld.texinfo 30 Apr 2013 12:52:41 -0000
@@ -4031,7 +4031,7 @@ into ascending order by name before plac
@cindex SORT_BY_ALIGNMENT
@code{SORT_BY_ALIGNMENT} is very similar to @code{SORT_BY_NAME}. The
difference is @code{SORT_BY_ALIGNMENT} will sort sections into
-ascending order by alignment before placing them in the output file.
+descending order by alignment before placing them in the output file.
@cindex SORT_BY_INIT_PRIORITY
@code{SORT_BY_INIT_PRIORITY} is very similar to @code{SORT_BY_NAME}. The