GNU ld version 2.16.1, compiled as arm-elf-ld for Darwin/OS X: called with "-Map filename.map", ld produces memory map text (listed under "Linker script and memory map") that is ordered neither alphabetically by symbol nor sequentially by absolute location, although entries are grouped together by .o object file. Lack of ordering makes the memory map much more difficult to use as an index, which I believe is the intended application.
I spent two hours looking at ld/ldlang.c and bfd/linker.c but could not even figure out where exactly each address/symbol pair is added to the for-printing statement list, much less where the sorting (or lack thereof) is taking place and how one might introduce a sorting algorithm. This is not a bug, but it is not a feature either. I can't find any other mention of this problem which makes me wonder if perhaps I am misusing ld. I would think this behavior would annoy just about everyone. Thanks, --Bill -- Summary: "ld -Map" memory map disordered Product: binutils Version: 2.16 Status: NEW Severity: enhancement Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: burgess at impulse dot net CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=2893 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils