[#6570] blackfin assembler rejects valid code when building recent kernels

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6570] blackfin assembler rejects valid code when building recent kernels

Submitted By: Mike Frysinger

Open Date

2011-04-29 15:49:34     Close Date

2011-05-10 23:28:18

Priority:

Medium High     Assignee:

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Rejected     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

5228     kernel rev.:

linux-next

State:

Closed     Found In Release:

2011R1

Is this bug repeatable?:

yes     

Summary: blackfin assembler rejects valid code when building recent kernels

Details:

 

i dont know why it's doing this, but our assembler is rejecting recent kernel builds (linux-next):

  CC      kernel/softirq.o

/tmp/ccUN3N0H.s: Assembler messages:

/tmp/ccUN3N0H.s:3734: Error: symbol `___ksymtab__local_bh_enable' is already defined

make[1]: *** [kernel/softirq.o] Error 1

 

the simple test case:

$ cat test.s

.section ksymtab__local_bh_enable,"a",@progbits

ksymtab__local_bh_enable:

$ bfin-uclinux-as test.s

test.s: Assembler messages:

test.s:2: Error: symbol `ksymtab__local_bh_enable' is already defined

 

something about this name "ksymtab__local_bh_enable" is causing the assembler to detect a conflict where there is none ...

 

Follow-ups

 

--- Stuart Henderson                                         2011-05-10 07:07:36

is this not the "correct" behaviour?  it seems to be standard for gas

to add .section names to the symbol table in every version i've tested from 2.13

to 2.21:

 

comptest@edin-oldsuse:~> cat a.s

.section moo

moo:

nop;

comptest@edin-oldsuse:~> as -V

GNU assembler version 2.13.90.0.18 (i486-suse-linux) using BFD version

2.13.90.0.18 20030121 (SuSE Linux)

 

comptest@edin-oldsuse:~> as a.s

a.s: Assembler messages:

a.s:2: Error: symbol `moo' is already defined

 

--- Mike Frysinger                                           2011-05-10 23:28:18

yeah, i think you're right.  too many underscores were throwing me off.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes