This patch http://sourceware.org/ml/binutils/2005-09/msg00234.html causes ia64 assembler to generate different debug info.
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
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?
The difference is I don't think this alone will cause kernel boot problem.
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.
*** This bug has been marked as a duplicate of 1433 ***