From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7708 invoked by alias); 23 Dec 2006 15:20:41 -0000 Received: (qmail 7667 invoked by uid 48); 23 Dec 2006 15:20:32 -0000 Date: Sat, 23 Dec 2006 15:20:00 -0000 Message-ID: <20061223152032.7666.qmail@sourceware.org> From: "jan dot kratochvil at redhat dot com" To: frysk-bugzilla@sourceware.org In-Reply-To: <20061219125759.3763.mark@klomp.org> References: <20061219125759.3763.mark@klomp.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/3763] testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64 X-Bugzilla-Reason: AssignedTo Mailing-List: contact frysk-bugzilla-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: frysk-bugzilla-owner@sourceware.org X-SW-Source: 2006-q4/txt/msg00829.txt.bz2 List-Id: ------- Additional Comments From jan dot kratochvil at redhat dot com 2006-12-23 15:20 ------- Created an attachment (id=1470) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1470&action=view) `AC_SYS_LARGEFILE' for whole Frysk as elfutils is using it This patch should be reviewed by a Frysk architect as I am not sure if this change really needs to be global. It is definitely needed for any code sharing ABI with elfutils as elfutils is already using it. It is also needed for any code accessing arbitrary files, which can be possibly larger than 2GB. Currently the layout: /* Descriptor for data to be converted to or from memory format. */ typedef struct { void *d_buf; /* Pointer to the actual data. */ Elf_Type d_type; /* Type of this piece of data. */ unsigned int d_version; /* ELF version. */ size_t d_size; /* Size in bytes. */ off_t d_off; /* Offset into section. */ size_t d_align; /* Alignment in section. */ } Elf_Data; was handled differently in different parts of Frysk as `off_t' was sometimes compiled on i686 as 4 bytes and sometimes as 8 bytes, therefore in some cases `d_align' was fetched from a wrong offset. After this `AC_SYS_LARGEFILE' fix gets committed the testcase frysk-imports$ ./TestRunner lib.elf.tests.TestElf needs to be updated as currently it expects the buggy value 0 everywhere, there should be some `expectedDataAlignments' and the alignments should match the column `Al' of the output of: frysk-imports$ readelf -a ./frysk/pkgdatadir/helloworld.o -- http://sourceware.org/bugzilla/show_bug.cgi?id=3763 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.