Received: (at submit) by bugs.debian.org; 26 Feb 2001 16:44:27 +0000 From duret_g@lrde.epita.fr Mon Feb 26 10:44:27 2001 Return-path: Received: from hermes.epita.fr [::ffff:163.5.255.10] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14XQl9-0004gg-00; Mon, 26 Feb 2001 10:44:27 -0600 Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2]) by hermes.epita.fr id RAA23180 Mon, 26 Feb 2001 17:44:04 GMT Received: from phobos.lrde.epita.fr ([10.223.13.38] ident=mail) by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian)) id 14XQre-0001GA-00; Mon, 26 Feb 2001 17:51:10 +0100 Received: from adl by phobos.lrde.epita.fr with local (Exim 3.22 #1) id 14XQre-0002rE-00; Mon, 26 Feb 2001 17:51:10 +0100 From: Alexandre Duret-Lutz Subject: binutils: as: funky error message (Subtraction of two symbols in different sections) To: submit@bugs.debian.org X-Mailer: bug 3.3.9 Message-Id: Sender: Alexandre Duret-Lutz Date: Mon, 26 Feb 2001 17:51:10 +0100 Delivered-To: submit@bugs.debian.org Package: binutils Version: 2.10.91.0.2-1 Severity: normal Hi I believe I'm seeing something unexpected from gas: ~/tmp % cat huh.s .data x: .dc.b 0 .text y: .dc.b 0 .dc.l x - y .dc.l y - x ~/tmp % as huh.s huh.s: Assembler messages: huh.s:7: Error: Subtraction of two symbols in different sections ".text" {.text section} - "x" {.data section} at file address 5. ~/tmp % What bugs me is: * there is only one `Error:' line (why would `x - y' be allowed if `y - x' is not?) * the reading of the error itself is suspicious (I would expect s/".text"/"y"/) -- System Information Debian Release: testing/unstable Kernel Version: Linux phobos 2.4.0-test11 #8 Fri Dec 1 14:23:08 CET 2000 i586 unknown Versions of the packages binutils depends on: ii libc6 2.2.2-1 GNU C Library: Shared libraries and Timezone