linker script keyword AT seems to be ignored resulting in a incorrect binary output
SECTIONS { .stub 0x8000 : { *i386boot* (.text .data .bss) } __loader_image = ABSOLUTE (.) ; . = ABSOLUTE (0x100000) ; .main . : AT (__loader_image) { LONG (ABSOLUTE (ADDR (.main))) ; LONG (SIZEOF (.main)) ; LONG (L_stack) ; LONG (_loader_startup) ; *(.text) *(.data) *(.comment) *(.bss) } . = ALIGN (4096) ; . += 0x8000 ; L_stack = ABSOLUTE (.) ; } OUTPUT_FORMAT (binary) ; .main is put at 1MB mark in the file rather then stright after .stub -- Summary: broken linker script keyword Product: binutils Version: 2.16 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: cman dot cpp at gmail dot com CC: bug-binutils at gnu dot org GCC host triplet: i686-pc-cygwin GCC target triplet: i386-pc-go32 http://sourceware.org/bugzilla/show_bug.cgi?id=2757 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils