Commit a3e854d9 authored by H. Peter Anvin's avatar H. Peter Anvin

x86, relocs: Workaround for binutils section bug

GNU ld has a bug that it blindly changes symbols from
section-relative to absolute if they are in a section of zero length.
This turns the symbols __init_begin and __init_end into absolute
symbols.  Let the relocs program know that those should be treated as
relative symbols.
Reported-by: default avatarIngo Molnar <>
Signed-off-by: default avatarH. Peter Anvin <>
Cc: H.J. Lu <>
Cc: <>
Cc: Jarkko Sakkinen <>
parent 6520fe55
......@@ -56,7 +56,11 @@ static const char * const sym_regex_kernel[S_NSYMTYPES] = {
* as absolute (typically defined outside any section in the linker script.)
[S_REL] =
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment