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.
This commit is contained in:
parent
55e8bbeb6e
commit
fbb15488c4
5
gnu/dist/binutils/ld/ldlang.c
vendored
5
gnu/dist/binutils/ld/ldlang.c
vendored
@ -4876,14 +4876,13 @@ lang_process (void)
|
||||
|
||||
lang_do_assignments (statement_list.head, abs_output_section, NULL, 0);
|
||||
|
||||
ldemul_finish ();
|
||||
|
||||
/* Make sure that the section addresses make sense. */
|
||||
if (! link_info.relocatable
|
||||
&& command_line.check_section_addresses)
|
||||
lang_check_section_addresses ();
|
||||
|
||||
/* Final stuffs. */
|
||||
|
||||
ldemul_finish ();
|
||||
lang_finish ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user