bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/25585] New: [2.34 Regression] error: PHDR segment not covered by


From: hjl.tools at gmail dot com
Subject: [Bug ld/25585] New: [2.34 Regression] error: PHDR segment not covered by LOAD segment
Date: Fri, 21 Feb 2020 13:07:54 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25585

            Bug ID: 25585
           Summary: [2.34 Regression] error: PHDR segment not covered by
                    LOAD segment
           Product: binutils
           Version: 2.35 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: amodra at gmail dot com
            Blocks: 4499
  Target Milestone: ---

When building ACRN hypervisor:

https://github.com/projectacrn/acrn-hypervisor

on Fedora 31/x86-64 with

$ dnf install python3-pip
$ pip3 install kconfiglib
$ make all BOARD=nuc7i7dnb SCENARIO=industry RELEASE=0

I got

cc
-Wl,-Map=/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/acrn.map
-o /export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/acrn.out 
-Wl,--gc-sections -nostartfiles -nostdlib -Wl,-n,-z,max-page-size=0x1000 -pie
-z noreloc-overflow  
-T/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/link_ram.ld \
        -Wl,--start-group
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/modules/lib_mod.a
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/modules/boot_mod.a
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/modules/hw_mod.a
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/modules/vp_base_mod.a
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/modules/vp_dm_mod.a
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/modules/vp_trusty_mod.a
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/modules/vp_hcall_mod.a
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/modules/libdebug.a
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/modules/sys_init_mod.a
-Wl,--end-group
/usr/local/bin/ld:
/export/gnu/import/git/github/acrn-hypervisor/build/hypervisor/acrn.out: error:
PHDR segment not covered by LOAD segment
collect2: error: ld returned 1 exit status

This is caused by

commit 30fe183248b2523ecff9da36853e2f893c4c4b91
Author: Alan Modra <address@hidden>
Date:   Wed Oct 23 17:40:51 2019 +1030

    PR4499, assign file positions assumes segment offsets increasing

    This rewrites much of assign_file_positions_for_non_load_sections to
    allow objcopy and strip to handle cases like that in PR4499 where
    program headers were not in their usual position immediately after the
    ELF file header, and PT_LOAD headers were not sorted by paddr.


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=4499
[Bug 4499] assign file positions assumes segment offsets increasing
-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]