[Bug binutils/12048] New: Set Large address aware flag using objcopy

2010-09-22 Thread jon_y at users dot sourceforge dot net
Some ld PE flags like --large-address-aware, --dynamicbase, --forceinteg, --nxcompat etc are not replicated in objcopy. -- Summary: Set Large address aware flag using objcopy Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: enhanc

[Bug ld/11812] Unused .got.plt section generated by linker

2010-09-22 Thread drow at sources dot redhat dot com
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-07-14 00:31 --- Subject: Bug 11812 CVSROOT:/cvs/src Module name:src Changes by: h...@sourceware.org 2010-07-14 00:30:58 Modified files: bfd: ChangeLog elf32-i386.c elf64-x86-64.c

[Bug ld/11812] Unused .got.plt section generated by linker

2010-09-22 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-09-23 00:01 --- (In reply to comment #2) > H.J., this patch broke one of our applications. It uses the address of > _DYNAMIC, which is stored in .got.plt, to relocate itself. It finds that > location by referencing _GLOBA

[Bug ld/11812] Unused .got.plt section generated by linker

2010-09-22 Thread drow at sources dot redhat dot com
--- Additional Comments From drow at sources dot redhat dot com 2010-09-23 00:37 --- Here's a minimal version that demonstrates the wrong value. .text .globl _start _start: leaq _DYNAMIC(%rip), %rsi movq _GLOBAL_OFFSET_TABLE_(%rip), %rcx subq %rcx

[Bug ld/11812] Unused .got.plt section generated by linker

2010-09-22 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-09-23 04:02 --- (In reply to comment #4) > Here's a minimal version that demonstrates the wrong value. > > .text > .globl _start > _start: > leaq _DYNAMIC(%rip), %rsi > movq _GLOBAL_OFFSET_T