.long directive offset is not resolved if the section name ith ""aw",@progbits"
Consider a test case:
test_eh.s
.file "test_eh.cc"
.section .eh_frame,"aw",@progbits
# .section .eh_frame
.Lframe1:
.long .LECIE1-.LSCIE1
.LSCIE1:
.long 0x0
.LECIE1:
.ident "GCC: (GNU)
Hello,
Below test case:
test_eh.s
.file "test_eh.cc"
.section .eh_frame,"aw",@progbits
# .section .eh_frame
.L1:
.long .L3-.L2
.L2:
.long 0x0
.L3:
.ident "GCC: (GNU) 4.1.2"
Command line:
> cr16-elf-gcc test_eh.s -c
> cr16-elf-objdump -r test_eh.o
RELOCATION RECORD
make[4]: Entering directory `/home/bdeegan/kits/src/binutils/src/gold'
if g++ -DHAVE_CONFIG_H -I. -I.././gold -I. -I.././gold -I.././gold/../include
-I.././gold/../elfcpp
-DLOCALEDIR="\"/home/bdeegan/tools/stow/goldlink/share/locale\""
-DBINDIR="\"/home/bdeegan/tools/stow/goldlink/bin\""
-DTOOLBIND
--- Additional Comments From nickc at redhat dot com 2009-07-01 16:37
---
Hi Anthony,
Thanks for reporting this bug. I have checked in the uploaded patch to fix
the problem and adjust the gas testsuite to take the change into account.
Cheers
Nick
gas/ChangeLog
PR 10168
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2009-07-01
16:36 ---
Subject: Bug 10168
CVSROOT:/cvs/src
Module name:src
Changes by: ni...@sourceware.org2009-07-01 16:36:29
Modified files:
gas: ChangeLog
gas/config : t
--- Additional Comments From nickc at redhat dot com 2009-07-01 16:33
---
Created an attachment (id=4034)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4034&action=view)
Fix opcode generation and testsuite
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10168
--- You
Roman Divacky writes:
> Target_freebsd::do_adjust_elf_header()
>
> there is 32specific code that does not work on 64bit platforms
>
> this:
>
> gold_assert(len == elfcpp::Elf_sizes<32>::ehdr_size);
>
> elfcpp::Ehdr<32, false> ehdr(view);
>
>
> the 32 does not work on 64bit platform (ie.
--- Additional Comments From nickc at redhat dot com 2009-07-01 15:59
---
Not a bug
--
What|Removed |Added
Status|NEW |RESOLVED
--- Additional Comments From nickc at redhat dot com 2009-07-01 15:59
---
Hi Anthony,
Yes it does. You just need to tell the assembler that you are in thumb mode.
ie:
% echo ".thumb\n orn r1,r2,r3" | arm-elf-as -o /dev/null
% arm-elf-objdump -d a.out
[...]
0: ea62 0103
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2009-07-01
15:52 ---
Subject: Bug 6714
CVSROOT:/cvs/src
Module name:src
Changes by: ni...@sourceware.org2009-07-01 15:52:28
Modified files:
binutils : ChangeLog rclex.c
Log message:
--- Additional Comments From nickc at redhat dot com 2009-07-01 15:52
---
Hi Carl,
Thank you for submitting a test case, and sorry for taking so long to reply to
your posting.
You are correct, windres was not concatenating quoted strings as it ought to
have been doing. I am going
--- Additional Comments From nickc at redhat dot com 2009-07-01 15:48
---
Created an attachment (id=4033)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4033&action=view)
Join quoted strings separated by whitespace.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6714
---
hi
in
Target_freebsd::do_adjust_elf_header()
there is 32specific code that does not work on 64bit platforms
this:
gold_assert(len == elfcpp::Elf_sizes<32>::ehdr_size);
elfcpp::Ehdr<32, false> ehdr(view);
the 32 does not work on 64bit platform (ie. amd64), I believe
it should be ei
--- Additional Comments From nickc at redhat dot com 2009-07-01 14:47
---
Hi Owen,
Thanks for the test case, and sorry for the long delay in getting back to this
bug. Using that test case and the second version of the patch I created I get a
working executable (which prints 0x000
Hi,
In attempting to bootstrap gcc in Thumb2 state on an Ubuntu distribution using
ld from cvs as of GNU ld (GNU Binutils) 2.19.51.20090630 as well as GNU ld (GNU
Binutils for Ubuntu) 2.19.51.20090622, I see the following segfault while
linking f951.
The way I've configured gcc for the bootstrap
On Tue, Jun 30, 2009 at 01:24:22PM +0530, M R Swami Reddy wrote:
> Hi Alan,
> I have changed the relocs to solve in gas as shown below:
> ===
> RELOCATION RECORDS FOR [.eh_frame]:
> OFFSET TYPE VALUE
> R_CR16_SWITCH32 .LECIE1
> 0012 R_CR16_NUM32a ___gxx_personality
16 matches
Mail list logo