[Bug binutils/25181] RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations

2019-11-09 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25181 --- Comment #3 from Yiting Wang --- I've not figured out how to send a proper patch to binutils mailing list. github is much easier. See https://github.com/riscv/riscv-binutils-gdb/pull/185 -- You are receiving this mail because: You are on

[Bug binutils/25181] RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations

2019-11-09 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25181 --- Comment #2 from Yiting Wang --- I have a fix locally which changes the common ld/ldlang.c. I can post to binutils mailing list for review. I am not sure whether there is a possibility of a similar problem occurring *between* passes instea

[Bug binutils/25181] RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations

2019-11-09 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25181 --- Comment #1 from Yiting Wang --- Created attachment 12070 --> https://sourceware.org/bugzilla/attachment.cgi?id=12070&action=edit test case -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/25181] New: RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations

2019-11-09 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25181 Bug ID: 25181 Summary: RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations Product: binutils Version: 2.32 Status: UNCONFIRMED Sev

[Bug ld/25179] ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section

2019-11-09 Thread uwe at NetBSD dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25179 --- Comment #8 from Valery Ushakov --- Why? I do know about W^X and everything, but why does the linker care? -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/25179] ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section

2019-11-09 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25179 --- Comment #7 from Andreas Schwab --- Remove the writable bit. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/25180] New: Slowness in cplus_demangle()

2019-11-09 Thread tim.ruehsen at gmx dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=25180 Bug ID: 25180 Summary: Slowness in cplus_demangle() Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: binuti

[Bug ld/25179] ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section

2019-11-09 Thread uwe at NetBSD dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25179 --- Comment #6 from Valery Ushakov --- Change that .data to .section ".forth", "awx", @progbits and the bug still happens. (IIRC, PPC doesn't have separate "executable" permission in the MMU, so "can read" implies "can execute" and so abu

[Bug ld/25179] ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section

2019-11-09 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25179 --- Comment #5 from Andreas Schwab --- But then, it doesn't make much sense to put code in a non-executable section. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/25179] ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section

2019-11-09 Thread uwe at NetBSD dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25179 --- Comment #4 from Valery Ushakov --- Yes, ld.so can be changed to resolve them, but they can and should be resolved at link time. They are resolved at link time for text. In older versions they were always resolved for data too. Now they

[Bug ld/25179] ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section

2019-11-09 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25179 --- Comment #3 from Andreas Schwab --- FWIW, on ppc-linux the dynamic linker can handle these relocations. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/25179] ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section

2019-11-09 Thread uwe at NetBSD dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25179 --- Comment #2 from Valery Ushakov --- I managed to misedit the original submission and sent it too early it seems. Sorry. $ cc ha.S && ./a.out ./a.out: Unsupported relocation type 6 in non-PLT relocations where the error message is printe

[Bug ld/25179] ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section

2019-11-09 Thread uwe at NetBSD dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25179 --- Comment #1 from Valery Ushakov --- I see this on NetBSD/macppc 8-stable with $ ld --version GNU ld (NetBSD Binutils nb1) 2.27 and current with $ ld --version GNU ld (NetBSD Binutils nb1) 2.31.1 This used to work before I've upgraded f

[Bug ld/25179] New: ld fails to resolve R_PPC_ADDR16_HA relocations in the .data section

2019-11-09 Thread uwe at NetBSD dot org
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: min

[Bug binutils/13390] SuperH "pref" instruction was introduced in sh3, not sh4

2019-11-09 Thread uwe at NetBSD dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=13390 --- Comment #1 from Valery Ushakov --- This was fixed in ac99436572d903781c124fa3cc72d83360202b76 in 2015. -- You are receiving this mail because: You are on the CC list for the bug.