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.