[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU LD Bug
From: |
Andrew Mirsky |
Subject: |
GNU LD Bug |
Date: |
Thu, 21 Dec 2000 16:09:37 -0500 |
GNU ld 2.10
Copyright 2000 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
of
the GNU General Public License. This program has absolutely no
warranty.
Supported emulations:
elf32_sparc
elf64_sparc
Using the command file:
SECTIONS
{
my_first_section 0x1000 : { *(.my_first_section) }
my_second_section 0x2000 : { *(.my_second_section) }
}
OUTPUT_FORMAT("elf64-sparc")
OUTPUT_ARCH(sparc:v9a)
I was able to produce the following sections (from elfdump):
Section Header[1]: sh_name: my_second_section
sh_addr: 0x2000 sh_flags: 0
sh_size: 0x1e000 sh_type: [ SHT_PROGBITS ]
sh_offset: 0 sh_entsize: 0
sh_link: 0 sh_info: 0
sh_addralign: 0x10000
Section Header[2]: sh_name: my_first_section
sh_addr: 0x1000 sh_flags: 0
sh_size: 0x3008 sh_type: [ SHT_PROGBITS ]
sh_offset: 0x1e000 sh_entsize: 0
sh_link: 0 sh_info: 0
sh_addralign: 0x2000
The address of my_first_section plus its size is beyond the starting
address of my_second_section.
It should warn/error me that I am overlapping sections in virtual
address space? Or perhaps the problem is that I am trying to move around
non-allocatable sections? Shouldn't this be a warning as well?
Sincerely,
Andrew Mirsky
SUN Verification
- GNU ld bug, andrew . barber, 2000/12/20
- GNU LD Bug,
Andrew Mirsky <=