bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21017] New: [microblaze] ld fails with missing _GLOBAL_OFFSET_TA


From: bugdal at aerifal dot cx
Subject: [Bug ld/21017] New: [microblaze] ld fails with missing _GLOBAL_OFFSET_TABLE_ symbol when all relocs are @GOTOFF
Date: Mon, 02 Jan 2017 20:51:58 +0000

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

            Bug ID: 21017
           Summary: [microblaze] ld fails with missing
                    _GLOBAL_OFFSET_TABLE_ symbol when all relocs are
                    @GOTOFF
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: bugdal at aerifal dot cx
  Target Milestone: ---

When linking a program where all GOT-based relocations are GOT-relative rather
than GOT slots, create_got_section is never called and linking fails due to
missing _GLOBAL_OFFSET_TABLE_ symbol. This was found to happen when static
linking non-PIC code with musl libc's crt1 which contains (gratuitous for
non-pie, but not erroneous) logic to compute the address of _DYNAMIC if it's
defined, but it probably can also happen in other situations where most object
files are non-PIC but one contains PIC code with only GOT-relative relocations.

-- 
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]