[Bug ld/20475] Linking PIC executables with a linker script that does not place _GLOBAL_OFFSET_TABLE_ results in incorrect relocation

2016-08-16 Thread whitequark at whitequark dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20475 --- Comment #1 from whitequark at whitequark dot org --- The previous comment is not quite right. 1) The _GLOBAL_OFFSET_TABLE_ did not point at the end of .got.plt but at the start. 2) This is a bug in the architecture-independent ELF backend.

[Bug ld/20475] Linking PIC executables with a linker script that does not place _GLOBAL_OFFSET_TABLE_ results in incorrect relocation

2016-08-16 Thread whitequark at whitequark dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20475 --- Comment #2 from whitequark at whitequark dot org --- Created attachment 9439 --> https://sourceware.org/bugzilla/attachment.cgi?id=9439&action=edit Patch -- You are receiving this mail because: You are on the CC list for the bug. __

[Bug ld/20475] New: Linking PIC executables with a linker script that does not place _GLOBAL_OFFSET_TABLE_ results in incorrect relocation

2016-08-16 Thread whitequark at whitequark dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20475 Bug ID: 20475 Summary: Linking PIC executables with a linker script that does not place _GLOBAL_OFFSET_TABLE_ results in incorrect relocation Product: binutils