Bug 1434 - IA64 assembler generates different debug info
Summary: IA64 assembler generates different debug info
Status: RESOLVED DUPLICATE of bug 1433
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-07 00:32 UTC by H.J. Lu
Modified: 2005-10-07 08:54 UTC (History)
2 users (show)

See Also:
Host:
Target: ia64-unknown-linux-gnu
Build:
Last reconfirmed:


Attachments
A testcase (85.56 KB, application/octet-stream)
2005-10-07 00:33 UTC, H.J. Lu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2005-10-07 00:32:17 UTC
This patch

http://sourceware.org/ml/binutils/2005-09/msg00234.html

causes ia64 assembler to generate different debug info.
Comment 1 H.J. Lu 2005-10-07 00:33:23 UTC
Created attachment 688 [details]
A testcase

"new-as" is the bad as and "old-as" is the good one without the patch. I got


[hjl@gnu-4 dwarf2-2]$ make
./new-as -x -mconstant-gp -o new.o foo.s
./old-as -x -mconstant-gp -o old.o foo.s
readelf -a new.o > new
readelf -a old.o > old
diff -up old new
--- old 2005-10-06 17:33:11.000000000 -0700
+++ new 2005-10-06 17:33:11.000000000 -0700
@@ -1344,9 +1344,9 @@ Relocation section '.rela.debug_info' at
 000000005daf  000e00000065 R_IA64_SECREL32LS 0000000000000000 .debug_str +
1366 000000005de3  000e00000065 R_IA64_SECREL32LS 0000000000000000 .debug_str +
fc4
 000000005df9  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + 10
-000000005e01  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + 12
+000000005e01  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + 11
 000000005e0f  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + 10
-000000005e17  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + 12
+000000005e17  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + 11
 000000005e2b  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + c0
 000000005e33  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + 270
 000000005e3c  000e00000065 R_IA64_SECREL32LS 0000000000000000 .debug_str + f95

make: *** [all] Error 1
Comment 2 wilson@specifix.com 2005-10-07 01:19:42 UTC
Subject: Re:  IA64 assembler generates different debug info

On Thu, 2005-10-06 at 17:33, hjl at lucon dot org wrote:
> -000000005e01  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + 12
> +000000005e01  000200000027 R_IA64_DIR64LSB   0000000000000000 .text + 11

Isn't this exactly the same problem as gas/1433?  Interpretation of tags
in the presence of long instructions?
Comment 3 H.J. Lu 2005-10-07 04:30:45 UTC
The difference is I don't think this alone will cause kernel boot problem.
Comment 4 wilson@specifix.com 2005-10-07 06:56:39 UTC
Subject: Re:  IA64 assembler generates different debug info

On Fri, 2005-10-07 at 04:30 +0000, hjl at lucon dot org wrote:
> ------- Additional Comments From hjl at lucon dot org  2005-10-07 04:30 -------
> The difference is I don't think this alone will cause kernel boot problem.

So there is no actual bug here apparently.  You just noticed the debug
info was different.  In that case, the answer is yes it is different,
and the difference is accidental, however, since the old debug info was
technically wrong, I think we should keep the new behaviour.  And yes,
this is the same problem as PR 1433.
Comment 5 Richard Henderson 2005-10-07 08:54:32 UTC

*** This bug has been marked as a duplicate of 1433 ***