[Bug binutils/10494] New: strip modified vaddr of program headers in ePAPR Fixed Address Image Format

2009-08-06 Thread harry dot he at freescale dot com
We created one elf file in ePAPR Fixed Address Image Format, with an identity
mapping between effective and physical addresses. However, with "strip" command,
the vaddr of one program header is changed as below:

before stripping:
 0x8 off0x vaddr 0x2c00 paddr 0x2c00 align 2**2
 filesz 0x memsz 0x0400 flags rw- 40
after stripping
 0x8 off0x vaddr 0x37f0 paddr 0x2c00 align 2**2
 filesz 0x memsz 0x0400 flags rw- 40

-- 
   Summary: strip modified vaddr of program headers in ePAPR Fixed
Address Image Format
   Product: binutils
   Version: 2.18
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: harry dot he at freescale dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: powerpc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10494

--- 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


[Bug binutils/10494] strip modified vaddr of program headers in ePAPR Fixed Address Image Format

2009-08-06 Thread harry dot he at freescale dot com

--- Additional Comments From harry dot he at freescale dot com  2009-08-07 
06:06 ---
Created an attachment (id=4118)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4118&action=view)
ePAPR format elf file before stripping


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10494

--- 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


[Bug binutils/10494] strip modified vaddr of program headers in ePAPR Fixed Address Image Format

2009-08-06 Thread harry dot he at freescale dot com

--- Additional Comments From harry dot he at freescale dot com  2009-08-07 
06:07 ---
Created an attachment (id=4119)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4119&action=view)
ePAPR format elf file after stripping


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10494

--- 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


[Bug ld/10515] New: Linker corrupts the paddr and vaddr in program header

2009-08-12 Thread harry dot he at freescale dot com
I am attaching a sample program compiled using two different linker scripts
producing two different ELF files.

The two linker scripts are test_good.lds test_faulty.lds.
There is a trivial difference between two files.
In test_good.lds, 'ro_data' PHDRS entry is in first place.
In test_faulty.lds, 'ro_data' PHDRS entry is in second place.


The two elf files produced are test_good.elf, test_faulty.elf.

'objdump -p' of both the files is shown below.

[sample]$ objdump -p test_good.elf 

test_good.elf: file format elf32-big

Program Header:
LOAD off0x vaddr 0x0c00 paddr 0x0010 align 2**16
 filesz 0x0010 memsz 0x0010 flags r-x
LOAD off0x0010 vaddr 0x0020 paddr 0x0020 align 2**16
 filesz 0x0010 memsz 0x0010 flags rw- 40
LOAD off0x0020 vaddr 0x0800 paddr 0x0800 align 2**16
 filesz 0x memsz 0x0400 flags rw- 40
LOAD off0x0020 vaddr 0x0030 paddr 0x0030 align 2**16
 filesz 0x0001 memsz 0x0007 flags rw-
 0x8 off0x vaddr 0x0100 paddr 0x0100 align 2**0
 filesz 0x memsz 0x0700 flags rw-
 0x8 off0x vaddr 0x2c00 paddr 0x2c00 align 2**0
 filesz 0x memsz 0x0400 flags rw- 40
 0x8 off0x vaddr 0x1000 paddr 0x1000 align 2**0
 filesz 0x memsz 0x0400 flags rw- a0
 0x8 off0x vaddr 0x2800 paddr 0x2800 align 2**0
 filesz 0x memsz 0x0400 flags rw- 40

[sample]$ objdump -p test_faulty.elf 

test_faulty.elf: file format elf32-big

Program Header:
LOAD off0x0001 vaddr 0x0020 paddr 0x0020 align 2**16
 filesz 0x0010 memsz 0x0010 flags rw- 40
LOAD off0x vaddr 0x0bf0 paddr 0x align 2**16
 filesz 0x0020 memsz 0x0020 flags r-x
LOAD off0x0020 vaddr 0x0800 paddr 0x0800 align 2**16
 filesz 0x memsz 0x0400 flags rw- 40
LOAD off0x0020 vaddr 0x0030 paddr 0x0030 align 2**16
 filesz 0x0001 memsz 0x0007 flags rw-
 0x8 off0x vaddr 0x0100 paddr 0x0100 align 2**0
 filesz 0x memsz 0x0700 flags rw-
 0x8 off0x vaddr 0x2c00 paddr 0x2c00 align 2**0
 filesz 0x memsz 0x0400 flags rw- 40
 0x8 off0x vaddr 0x1000 paddr 0x1000 align 2**0
 filesz 0x memsz 0x0400 flags rw- a0
 0x8 off0x vaddr 0x2800 paddr 0x2800 align 2**0
 filesz 0x memsz 0x0400 flags rw- 40



Check that in 'objdump -p test_faulty.elf ' output, the second segement entry
contains paddr as 0 and vaddr as 0x0bf0. Where is it should have been 
vaddr = 0x0c00, paddr = 0x0010.

-- 
   Summary: Linker corrupts the paddr and vaddr in program header
   Product: binutils
   Version: 2.18
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
    ReportedBy: harry dot he at freescale dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: powerpc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10515

--- 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


[Bug ld/10515] Linker corrupts the paddr and vaddr in program header

2009-08-12 Thread harry dot he at freescale dot com

--- Additional Comments From harry dot he at freescale dot com  2009-08-13 
05:22 ---
Created an attachment (id=4130)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4130&action=view)
sample code and scripts produce different elfs


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10515

--- 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


[Bug binutils/11700] New: 'UPAGES' undeclared in compiling trad-core.c

2010-06-12 Thread harry dot he at freescale dot com
I am using one cross-toolchain (ColdSourcery release 4.4-217) to build binutils
for m68k, it reports following errors, it seems UPAGES is not defined for m68k.

ccache m68k-linux-gnu-gcc -B
/home/harryhe/toolchain/ltib/coldfire/ltib-modelo-20100429/rootfs/usr/lib//
-idirafter
/home/harryhe/toolchain/ltib/coldfire/ltib-modelo-20100429/rootfs/usr/include
-iwithprefixbefore include -march=isac -mcpu=54418 -msoft-float -DHAVE_CONFIG_H
-I. -I../../bfd -I. -DTRAD_CORE -I. -I../../bfd -I../../bfd/../include -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../bfd/cpu-m68k.c
../../bfd/trad-core.c: In function 'trad_unix_core_file_p':
../../bfd/trad-core.c:122: error: 'UPAGES' undeclared (first use in this 
function)
../../bfd/trad-core.c:122: error: (Each undeclared identifier is reported only 
once
../../bfd/trad-core.c:122: error: for each function it appears in.)
../../bfd/trad-core.c:191: error: 'HOST_TEXT_START_ADDR' undeclared (first use
in this function)
../../bfd/trad-core.c:197: error: 'HOST_STACK_END_ADDR' undeclared (first use in
this function)
make[4]: *** [trad-core.lo] Error 1

-- 
   Summary: 'UPAGES' undeclared in compiling trad-core.c
   Product: binutils
   Version: 2.19
Status: NEW
  Keywords: glibc_2.11
  Severity: normal
  Priority: P1
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
    ReportedBy: harry dot he at freescale dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: m68k-linux-gnu
GCC target triplet: m68k-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=11700

--- 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