diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-08-13 23:32:38 +0200 |
---|---|---|
committer | Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> | 2017-08-15 17:34:36 +0200 |
commit | 24cc8585aa51794be72ad1d9691aa3ab7b534b00 (patch) | |
tree | c4d9320b4fd44bc905d92d51a7f47b7e66fbbd83 /boot/syslinux/0004-memdisk-Force-ld-output-format-to-32-bits.patch | |
parent | 978724d8cf487f285c85473e75482ae6a618a2a6 (diff) | |
download | buildroot-24cc8585aa51794be72ad1d9691aa3ab7b534b00.tar.gz buildroot-24cc8585aa51794be72ad1d9691aa3ab7b534b00.zip |
elf2flt: add patch to fix ld.real search logic
elf2flt contains a program called ld-elf2flt, which gets installed as
a replacement for ld, with ld renamed to ld.real. This program
therefore calls ld.real internally.
The logic to find ld.real worked fine for:
- bin/TARGET_ALIAS-ld
- TARGET_ALIAS/bin/ld
However, it failed badly if bin/SIMPLER_TARGET_ALIAS-ld is used, as
symlink to bin/TARGET_ALIAS-ld. For example:
$ ./output/host/bin/arm-buildroot-uclinux-uclibcgnueabi-ld
/home/thomas/buildroot/buildroot/output/host/bin/../arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: no input files
$ ./output/host/bin/arm-linux-ld
arm-linux-ld (ld-elf2flt): error trying to exec '/home/thomas/buildroot/buildroot/output/host/bin/ld.real': execvp: No such file or directory
$ ./output/host/arm-buildroot-uclinux-uclibcgnueabi/bin/ld
/home/thomas/buildroot/buildroot/output/host/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: no input files
This commit fixes that by adding a patch that adjusts the ld-elf2flt
logic to properly cope with this situation.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'boot/syslinux/0004-memdisk-Force-ld-output-format-to-32-bits.patch')
0 files changed, 0 insertions, 0 deletions