Subject: CVS commit: src/gnu/dist/binutils/ld
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 07/10/2006 17:42:17
Module Name:	src
Committed By:	drochner
Date:		Mon Jul 10 17:42:17 UTC 2006

Modified Files:
	src/gnu/dist/binutils/ld: ldlang.c

Log Message:
Call ldemul_finish() before lang_check_section_addresses(), as done
in binutils-current, rev.1.224.
ldemul_finish() might change section addresses/lengths, so this change
makes sure it is really the final output which is checked.

This fixes problems loading LKMs on alpha and amd64, reported by
Dave Huang per PR bin/33909. I could reproduce it myself on alpha.


To generate a diff of this commit:
cvs rdiff -r1.1.1.3 -r1.2 src/gnu/dist/binutils/ld/ldlang.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.