• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/boot/syslinux/0010-core-Clean-up-the-i386-bios-build.patch
Arnout VandecappelleArnout Vandecappelle committed 11089e2062416 Aug 2017
Raw file
Source viewDiff to previous
 
1
From a14b1b3d3e375d2e8af8804171ef5e52574dbb2a Mon Sep 17 00:00:00 2001
2
From: "H. Peter Anvin" <hpa@zytor.com>
3
Date: Tue, 9 Feb 2016 18:15:50 -0800
4
Subject: [PATCH] core: Clean up the i386-bios build
5
​
6
Remove symbols and data structures not used in the i386-bios build,
7
and clean up the linker script so that most internal symbols are
8
HIDDEN.
9
​
10
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
11
​
12
Upstream: ff859050fa4e6535cae098dc35d88a265466448d
13
​
14
This patch fixes the following build failure with i386 binutils 2.28.1:
15
​
16
/builds/arnout/buildroot/output/host/bin/i586-buildroot-linux-uclibc-ld  -Bsymbolic -pie -E --hash-style=gnu -T
17
/builds/arnout/buildroot/output/build/syslinux-6.03/core/i386/syslinux.ld -M -o ldlinux.elf ldlinux.o \
18
    --start-group libcom32.a --whole-archive /builds/arnout/buildroot/output/build/syslinux-6.03/bios/com32/lib/libcom32core.a libldlinux.a --end-group -N
19
--no-omagic \
20
    > ldlinux.map
21
/builds/arnout/buildroot/output/host/bin/i586-buildroot-linux-uclibc-ld: ldlinux.elf: Not enough room for program headers, try linking with -N
22
/builds/arnout/buildroot/output/host/bin/i586-buildroot-linux-uclibc-ld: final link failed: Bad value
23
/builds/arnout/buildroot/output/build/syslinux-6.03/core/Makefile:167: recipe for target 'ldlinux.elf' failed
24
​
25
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
26
---
27
 core/extern.inc       |  17 +--
28
 core/i386/syslinux.ld | 287 +++++++++++++++++++++++++-------------------------
29
 core/layout.inc       |  11 --
30
 3 files changed, 143 insertions(+), 172 deletions(-)
31
​
32
diff --git a/core/extern.inc b/core/extern.inc
33
index af8eb04c..ce4abfab 100644
34
--- a/core/extern.inc
35
+++ b/core/extern.inc
36
@@ -12,27 +12,17 @@
37
    ; hello.c
38
    extern hello
39
 
40
-   ;abort.c
41
-   extern abort_load_new
42
-
43
    ; elflink/load_env32.c
44
    extern load_env32, pm_env32_run
45
 
46
-   ; memscan.c
47
-   extern highmem_init
48
-
49
-   extern linux_kernel
50
-
51
    extern mp1, mp2, mp3, mp4, mp5
52
 
53
-   extern hexdump, mydump
54
+   extern hexdump
55
 
56
    extern mem_init
57
 
58
    ; fs.c
59
-   extern pm_fs_init, pm_searchdir, getfssec, getfsbytes
60
-   extern pm_mangle_name, pm_load_config
61
-        extern pm_open_file, pm_close_file
62
+   extern pm_fs_init
63
    extern SectorSize, SectorShift
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.