[Bug gas/12296] cortex-m3: SVC is not permitted on this architecture

2011-03-30 Thread mgretton at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12296

Matthew Gretton-Dann  changed:

   What|Removed |Added

 CC||mgretton at sourceware dot
   ||org

--- Comment #3 from Matthew Gretton-Dann  
2011-03-30 09:32:31 UTC ---
(In reply to comment #2)
> It looks like the v7 processor profile (which the Cortex-M3 is an example of)
> neglects to mark the "os" extension as being available.

This is indeed the case.  Mistake on my part when creating the initial patch.

Please submit a patch - with testcase - to the binutils mailing list.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12618] Can't resolve difference between symbol and start of its own section

2011-03-30 Thread rsandifo at nildram dot co.uk
http://sourceware.org/bugzilla/show_bug.cgi?id=12618

rsand...@nildram.co.uk  changed:

   What|Removed |Added

 CC||rsandifo at nildram dot
   ||co.uk

--- Comment #1 from rsandifo at nildram dot co.uk  2011-03-30 19:09:09 UTC ---
I think the new behaviour is correct, and is a deliberate bug fix
from earlier binutils.  strcmp is defined as an indirection function,
so it's address can only be determined at run-time (by calling the
strcmp defined here to get the real address).  It therefore isn't
correct to resolve "strcmp - .text" at assembly time (or link time).

The test case wants to refer to the locally-defined strcmp function,
so it should use a local label instead of the ifunc symbol.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12618] Can't resolve difference between symbol and start of its own section

2011-03-30 Thread sutefan at aon dot at
http://sourceware.org/bugzilla/show_bug.cgi?id=12618

Stefan Fiedler  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID

--- Comment #2 from Stefan Fiedler  2011-03-30 21:40:11 
UTC ---
Thanks for your explanation, I think I understand the problem now. Since it
should be addressed in the C library, I'll close this bug report.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12608] TLS relocations issues on alpha

2011-03-30 Thread baryluk at smp dot if.uj.edu.pl
http://sourceware.org/bugzilla/show_bug.cgi?id=12608

Witold Baryluk  changed:

   What|Removed |Added

 CC||baryluk at smp dot
   ||if.uj.edu.pl

--- Comment #3 from Witold Baryluk  2011-03-31 
00:04:36 UTC ---
To test if it is regression,
I tested both asembly files using 2.18.1~cvs20080103-7,
and both produces EXACTLY same .so file. Shouldn't it
produce two different files?
(intermidiete .o files are different, just like in initial report).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12608] TLS relocations issues on alpha

2011-03-30 Thread baryluk at smp dot if.uj.edu.pl
http://sourceware.org/bugzilla/show_bug.cgi?id=12608

--- Comment #4 from Witold Baryluk  2011-03-31 
00:32:44 UTC ---
Additionally, .o files are only differing in this places

$ cmp --verbose source-ev{4,5}.o
  871  35 175
  872  42 247
  875 175  35
  876 247  42
 8409  44  50
 8433  50  44
$

This actually do not exactly much my understaning relating object code and this
numers (they do not much when doing, hex<->dec, but I will blame cmp reporting
in strange way). Here is the same file piped thru hd, and then compared.


baryluk@a09:~/tls-relocation-bug$ diff -Nu source-ev4.o.hd  source-ev5.o.hd
--- source-ev4.o.hd2011-03-31 01:37:45.0 +0200
+++ source-ev5.o.hd2011-03-31 01:37:49.0 +0200
@@ -52,7 +52,7 @@
 0330  2d 00 20 e4 00 00 3d a4  0d 00 5f 20 22 37 44 48  |-. ...=..._ "7DH|
 0340  01 04 20 40 19 00 42 20  00 00 61 a4 23 36 7e 48  |.. @..B ..a.#6~H|
 0350  a2 05 62 40 24 00 40 e4  08 00 21 a4 a1 75 23 40  |..b@$.@...!..u#@|
-0360  21 00 20 e4 00 00 1d 22  00 00 7d a7 00 40 5b 6b  |!. "..}..@[k|
+0360  21 00 20 e4 00 00 7d a7  00 00 1d 22 00 40 5b 6b  |!. ...}".@[k|
 0370  00 00 ba 27 00 00 00 24  11 00 3f 20 00 00 40 a4  |...'...$..? ..@.|
 0380  00 00 bd 23 21 17 24 48  22 36 5e 48 10 00 21 20  |...#!.$H"6^H..! |
 0390  a1 05 41 40 14 00 20 e4  00 00 00 20 08 00 20 a4  |..A@..  .. .|
@@ -521,9 +521,9 @@
 20a0  10 00 00 00 00 00 00 00  bc 02 00 00 00 00 00 00  ||
 20b0  25 00 00 00 18 00 00 00  00 00 00 00 00 00 00 00  |%...|
 20c0  f4 02 00 00 00 00 00 00  25 00 00 00 1a 00 00 00  |%...|
-20d0  00 00 00 00 00 00 00 00  24 03 00 00 00 00 00 00  |$...|
+20d0  00 00 00 00 00 00 00 00  28 03 00 00 00 00 00 00  |(...|
 20e0  1e 00 00 00 07 00 00 00  00 00 00 00 00 00 00 00  ||
-20f0  28 03 00 00 00 00 00 00  04 00 00 00 13 00 00 00  |(...|
+20f0  24 03 00 00 00 00 00 00  04 00 00 00 13 00 00 00  |$...|
 2100  00 00 00 00 00 00 00 00  2c 03 00 00 00 00 00 00  |,...|
 2110  05 00 00 00 01 00 00 00  05 00 00 00 00 00 00 00  ||
 2120  2c 03 00 00 00 00 00 00  08 00 00 00 13 00 00 00  |,...|

PS. Ah, sorry, cmp --verbose, output in base-8. Now it matches.

This is what I got in resulting .so file in my case (remember binutils 2.18),

$ hd tst-tlsmod7-z-ev4.so | grep '75 23' -A 2
0ec0  a2 05 62 40 24 00 40 e4  08 00 21 a4 a1 75 23 40  |..b@$.@...!..u#@|
0ed0  21 00 20 e4 58 80 1d a6  00 00 fe 2f 9e 00 00 00  |!. .X../|
0ee0  00 04 00 42 00 00 00 24  11 00 3f 20 58 00 40 a4  |...B...$..? X.@.|

After locating it in objdump -d, I have this

 ebc:   23 36 7e 48 zapnot  t2,0xf1,t2
 ec0:   a2 05 62 40 cmpeq   t2,t1,t1
 ec4:   24 00 40 e4 beq t1,f58 
 ec8:   08 00 21 a4 ldq t0,8(t0)
 ecc:   a1 75 23 40 cmpeq   t0,0x1b,t0
 ed0:   21 00 20 e4 beq t0,f58 
 ed4:   58 80 1d a6 ldq a0,-32680(gp)
 ed8:   00 00 fe 2f unop
 edc:   9e 00 00 00 rduniq
 ee0:   00 04 00 42 addqa0,v0,v0
 ee4:   00 00 00 24 ldahv0,0(v0)

for both ev4 and ev5 .so. This matches a result of Aurelien's ev4.so

I will try bissecting problem.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12627] New: ld from binutils 2.21.51.0.6 mishandles differences between two section-relative symbols

2011-03-30 Thread hpa at zytor dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12627

   Summary: ld from binutils 2.21.51.0.6 mishandles differences
between two section-relative symbols
   Product: binutils
   Version: 2.21
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassig...@sources.redhat.com
ReportedBy: h...@zytor.com


Created attachment 5344
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5344
Linker script

Defining two section-relative symbols in a linker script and subtracting them
produces the wrong result (specifically, they end up with the section base
added in.)

See attached test case; in particular, %ecx gets 0x500 loaded into it instead
of the expected 0x100.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12627] ld from binutils 2.21.51.0.6 mishandles differences between two section-relative symbols

2011-03-30 Thread hpa at zytor dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12627

--- Comment #1 from hpa at zytor dot com  2011-03-31 
01:21:57 UTC ---
Created attachment 5345
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5345
Assembly file

as --32 -o symerr.o symerr.s
ld -T symerr.ld -o symerr.elf symerr.o

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12627] ld from binutils 2.21.51.0.6 mishandles differences between two section-relative symbols

2011-03-30 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12627

H.J. Lu  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12608] TLS relocations issues on alpha

2011-03-30 Thread baryluk at smp dot if.uj.edu.pl
http://sourceware.org/bugzilla/show_bug.cgi?id=12608

Witold Baryluk  changed:

   What|Removed |Added

 Status|NEW |UNCONFIRMED
 Ever Confirmed|1   |0

--- Comment #5 from Witold Baryluk  2011-03-31 
04:42:15 UTC ---
I cannot reproduce problem in CVS HEAD.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12608] TLS relocations issues on alpha

2011-03-30 Thread baryluk at smp dot if.uj.edu.pl
http://sourceware.org/bugzilla/show_bug.cgi?id=12608

--- Comment #6 from Witold Baryluk  2011-03-31 
04:47:51 UTC ---
This is diff I got when using git cvsimport repo, commit 9462a417 (I do not
know how to map it back to CVS, but it is Date:   Wed Mar 30 23:00:05 2011
+).


--- source-ev4.so.disa2011-03-31 05:58:39.0 +0200
+++ source-ev5.so.disa2011-03-31 05:58:44.0 +0200
@@ -1,5 +1,5 @@

-./source-ev4.so: file format elf64-alpha
+./source-ev5.so: file format elf64-alpha

 Disassembly of section .text:

@@ -229,8 +229,8 @@
  958:08 00 21 a4 ldqt0,8(t0)
  95c:a1 75 23 40 cmpeqt0,0x1b,t0
  960:21 00 20 e4 beqt0,9e8 
- 964:40 80 1d 22 ldaa0,-32704(gp)
- 968:20 80 7d a7 ldqt12,-32736(gp)
+ 964:20 80 7d a7 ldqt12,-32736(gp)
+ 968:40 80 1d 22 ldaa0,-32704(gp)
  96c:00 40 5b 6b jsrra,(t12),970 
  970:02 00 ba 27 ldahgp,2(ra)
  974:00 00 00 24 ldahv0,0(v0)

Instructions are re-ordered, as in input assembler, but it should work
(registers are correctly used).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12608] TLS relocations issues on alpha

2011-03-30 Thread baryluk at smp dot if.uj.edu.pl
http://sourceware.org/bugzilla/show_bug.cgi?id=12608

--- Comment #7 from Witold Baryluk  2011-03-31 
06:43:43 UTC ---
The same behaviour when I compiled binutils_2.21.0.20110327 from Debian
unstable.

Everything seems fine.

Aurelien, could you provide exact gcc/ld versions and a exact command line how
to produce .so files from given .s files?

Thanks,
Witek

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils