[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] [PATCH] Fix build for ARM Linux (and possibly others) with binutils head



Building [e]glibc trunk with binutils trunk has apparently been broken
since the following patch was applied:

  http://sourceware.org/ml/binutils/2009-01/msg00173.html

This upset the code in elf/Makefile which tries to edit the linker
script used to link ld-linux.so, because the expected pattern:

  ". = 0 + SIZEOF_HEADERS;"

has been changed.

The attached patch merely adds the new form of the above line,

  ". = SEGMENT_START("text-segment", 0) + SIZEOF_HEADERS;"

as an additional edit for the sed command in question. This seems
sufficient to un-break the build for me.

OK?

Julian

ChangeLog

    * elf/Makefile ($(objpfx)ld.so): Add sed pattern to recognize text
    segment defined with SEGMENT_START.