bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/25179] New: ld fails to resolve R_PPC_ADDR16_HA relocations in t


From: uwe at NetBSD dot org
Subject: [Bug ld/25179] New: ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section
Date: Sat, 09 Nov 2019 16:17:05 +0000

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

            Bug ID: 25179
           Summary: ld fails to resolve R_PPC_ADDR16_HA relocations in the
                    .data section
           Product: binutils
           Version: 2.31
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: uwe at NetBSD dot org
  Target Milestone: ---

On PowerPC ld fails to resolve R_PPC_ADDR16_HA relocations in the
.data section if the symbol was not previously referred in the .text
section.

$ cat ha.S
        .machine ppc
        .section .text.startup,"ax",@progbits
        .align 2
        .globl main
        .type main, @function
main:
        li      3, 0
        blr
#ifdef FIXME
        .long   memset          // mention symbol in the .text section
#endif

        .data
BUG:
        lis     0, memset@ha
        la      0, memset@l(0)

$ cc -DFIXME ha.S && ./a.out 
$ cc ha.S && ./a.out

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