Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2001 12:01:43 -0700 (PDT)
From:      sepotvin@videotron.ca
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/27777: gensetdefs.pl generates invalid code for ARM platform
Message-ID:  <200105301901.f4UJ1hm13810@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         27777
>Category:       kern
>Synopsis:       gensetdefs.pl generates invalid code for ARM platform
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 30 12:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stephane E. Potvin
>Release:        5.0-CURRENT
>Organization:
>Environment:
FreeBSD hades.nmss.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Apr 26 12:21:11 EDT 2001     spotvin@hades.nmss.com:/mnt/0/usr/local/users/spotvin/work/FreeBSD/obj.current/mnt/0/usr/local/users/spotvin/work/FreeBSD/src.current/sys/HADES  i386

>Description:
gensetdefs.pl uses the '@' character in the '.type' assembler directive it creates. Unfortunately, the '@' character is the comment character for ARM assemblers.
>How-To-Repeat:
Try to compile a file generated by gensetdefs.pl with the arm-elf-gcc295 port.
>Fix:
Apply the following patch to gensetdefs.pl that changes the '@' character to the '%' character. This works for i386 and ARM. It is not tested on alpha and ia64 platforms.

Index: gensetdefs.pl
===================================================================
RCS file: /usr/local/users/spotvin/ncvs/src/sys/kern/gensetdefs.pl,v
retrieving revision 1.3
diff -r1.3 gensetdefs.pl
83c83
< __asm__(".type " #set ",\@object");           \\
---
> __asm__(".type " #set ",%object");            \\

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105301901.f4UJ1hm13810>