[Bug gas/20759] New: sparc spec of gas implementations

2016-11-02 Thread ikozhukhov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20759

Bug ID: 20759
   Summary: sparc spec of gas implementations
   Product: binutils
   Version: 2.27
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: ikozhukhov at gmail dot com
  Target Milestone: ---

i'm using DilOS (illumos based platform)
i have SPARC and can build dilos-illumos by gcc44 with bootstrap:
gcc-4.4.7 + SunAS(old) + illumos ld

illumos ld based on spec of elf:
https://docs.oracle.com/cd/E26502_01/html/E26507/chapter6-54839.html

i looked to GAS in binutils 2.27 and i can see a lot of differences in types
implementations - relocation type R_SPARC_OLO10, HH22, etc.

could you please provide your sparc spec what you are using.
can you update GAS to SPARC spec based on :
https://docs.oracle.com/cd/E26502_01/html/E26507/chapter6-54839.html

we have to use illumos ld for ctf.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/20732] New: set failed on sparc with NANOSEC

2016-10-24 Thread ikozhukhov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20732

Bug ID: 20732
   Summary: set failed on sparc with NANOSEC
   Product: binutils
   Version: 2.27
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: ikozhukhov at gmail dot com
  Target Milestone: ---

I have DilOS, illumos based platform.
we have in illumos:
http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/sys/time.h#245

we have line:
setNANOSEC, %l5

or if put directly:
set10LL, %l5

it is working fine with Sun AS, but failed with GAS.
if i remove 'LL' - it is working on GAS too.

please fix GAS to be able to use C variables.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/20692] gas failed on SPARC

2016-10-17 Thread ikozhukhov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20692

--- Comment #2 from Igor Kozhukhov  ---
(In reply to Nick Clifton from comment #1)
> (In reply to Igor Kozhukhov from comment #0)
>  
> > ./crt/_rtbootld.s:75: Error: unknown pseudo-op: `.volatile'
> > ./crt/_rtbootld.s:245: Error: unknown pseudo-op: `.nonvolatile'
>  
> > what is replacement for .volatile on GAS?
> 
> There is no direct replacement.  If I have read the Sparc Assembly Language
> Reference Manual correctly, then these pseudo ops allow (.nonvolatile) and
> disallow (.volatile) assembly time optimizations.  The only optimization
> that GAS performs for the Sparc architecture is jump/call relaxation, and
> this is controlled via a command line option, not a pseudo-op.
> 
> You could try adding "-D.volatile= -D.nonvolatile= -Wa,--no-relax" to the
> command line and see if this works.
> 
> Cheers
>   Nick

your solution doesn't work.
GAS command line on SPARC not accepted -Wa,--no-relax
we can use -no-relax - but it is not fixed my problem and i can see:

/usr/bin/ld -32 -o libc.so.1 -G -hlibc.so.1 -ztext -zdefs -Bdirect 
-M/ws/builds/igork/dg-54/usr/src/lib/libc/port/mapfile-vers
-M/ws/builds/igork/dg-54/usr/src/common/mapfiles/common/map.pagealign  -z
rtldinfo=tls_rtldinfo -znow -e __rtboot  -zdtrace=dtrace_data pics/crti.o
pics/stret1.opics/stret2.o   pics/stret4.o  
pics/_ftou.opics/cerror.o   pics/cerror64.o
pics/hwmuldiv.o pics/_rtbootld.o   
pics/_D_cplx_div.o  pics/_D_cplx_div_ix.o   pics/_D_cplx_div_rx.o  
pics/_D_cplx_mul.o  pics/_F_cplx_div.o 
pics/_F_cplx_div_ix.o   pics/_F_cplx_div_rx.o   pics/_F_cplx_mul.o 
pics/_Q_add.o   pics/_Q_cmp.o   pics/_Q_cmpe.o 
pics/_Q_cplx_div.o  pics/_Q_cplx_div_ix.o   pics/_Q_cplx_div_rx.o  
pics/_Q_cplx_lr_div.o   pics/_Q_cplx_lr_div_ix.o   
pics/_Q_cplx_lr_div_rx.opics/_Q_cplx_lr_mul.o   pics/_Q_cplx_mul.o 
pics/_Q_div.o   pics/_Q_dtoq.o  pics/_Q_fcc.o  
pics/_Q_itoq.o  pics/_Q_lltoq.o pics/_Q_mul.o  
pics/_Q_neg.o   pics/_Q_qtod.o  pics/_Q_qtoi.o 
pics/_Q_qtos.o  pics/_Q_qtou.o  pics/_Q_scl.o  
pics/_Q_set_except.opics/_Q_sqrt.o  pics/_Q_stoq.o 
pics/_Q_sub.o   pics/_Q_ulltoq.opics/_Q_utoq.o 
pics/__quad_mag.o   pics/_Q_get_rp_rd.o
pics/fpgetmask.opics/fpgetrnd.o
pics/fpgetsticky.o  pics/fpsetmask.opics/fpsetrnd.o
pics/fpsetsticky.o pics/__quad.opics/atomic.o  
pics/chacha.o   pics/xattr_common.o pics/bcmp.o
pics/bcopy.opics/bzero.o   
pics/bsearch.o  pics/memccpy.o  pics/qsort.o   
pics/strtol.o   pics/strtoul.o  pics/strtoll.o 
pics/strtoull.o pics/dtrace_data.o  pics/_getsp.o  
pics/_xregs_clrptr.opics/abs.o 
pics/alloca.o   pics/arc4random.o  
pics/arc4random_uniform.o   pics/ascii_strcasecmp.o
pics/byteorder.opics/cuexit.o   pics/ecvt.o
pics/endian.o   pics/errlst.o   pics/getctxt.o 
pics/ladd.o pics/lmul.o pics/lock.o
pics/lshiftl.o  pics/lsign.o   
pics/lsub.o pics/makectxt.o pics/memchr.o  
pics/memcmp.o   pics/new_list.o pics/setjmp.o  
pics/siginfolst.o   pics/siglongjmp.o  
pics/smt_pause.opics/sparc_data.o   pics/strchr.o  
pics/strcmp.o   pics/strlcpy.o  pics/strncmp.o 
pics/strncpy.o  pics/strnlen.o  pics/swapctxt.o
pics/sync_instruction_memory.o  pics/memcpy.o   pics/memset.o  
pics/memmove.opics/strlen.o pics/strcpy.o  
pics/__flt_decim.o  pics/__flt_rounds.o
pics/__tbl_10_b.o   pics/__tbl_10_h.o  
pics/__tbl_10_s.o   pics/__tbl_2_b.o   
pics/__tbl_2_h.opics/__tbl_2_s.o   
pics/__tbl_fdq.opics/__tbl_tens.o  
pics/__x_power.opics/_base_sup.opics/aconvert.o
pics/decimal_bin.o  pics/double_decim.o
pics/econvert.o pics/fconvert.o
pics/file_decim.o   pics/finite.o   pics/fp_data.o 
pics/func_decim.o   pics/gconvert.o 

[Bug gas/20692] New: gas failed on SPARC

2016-10-16 Thread ikozhukhov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20692

Bug ID: 20692
   Summary: gas failed on SPARC
   Product: binutils
   Version: 2.27
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: ikozhukhov at gmail dot com
  Target Milestone: ---

I have DilOS (illumos based platform)
i have gcc-5.4 + GNU AS + illumos LD bootstrap - works well.
i try update illumos assembler files from Sun AS -> Gnu AS(GAS) and i have
problems.

/ws/builds/igork/dg-54/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/aw
-\#  -K pic -P -D__STDC__ -D_ASM -D_REENTRANT -Dsparc  -DTHREAD_DEBUG  -I./inc
-I/ws/builds/igork/dg-54/usr/src/lib/libc/inc -DTEXT_DOMAIN=\"SUNW_OST_OSLIB\"
-D_TS_ERRNO  -I/ws/builds/igork/dg-54/proto/root_sparc/usr/include 
-D_RETAIN_OLD_SYSCALLS -DPIC -D_REENTRANT -xarch=v8plus ./crt/_rtbootld.s -o
pics/_rtbootld.o
/usr/lib/cpp -D__GNUC_AS__ -D__STDC__ -D_ASM -D_REENTRANT -Dsparc
-DTHREAD_DEBUG -I./inc -I/ws/builds/igork/dg-54/usr/src/lib/libc/inc
-DTEXT_DOMAIN="SUNW_OST_OSLIB" -D_TS_ERRNO
-I/ws/builds/igork/dg-54/proto/root_sparc/usr/include -D_RETAIN_OLD_SYSCALLS
-DPIC -D_REENTRANT ./crt/_rtbootld.s -Dsparc -D__sparc -D__sparcv8 | {#line
filter} | /usr/bin/gas --warn --fatal-warnings --traditional-format
-xarch=v8plus -32 -o pics/_rtbootld.o 
./crt/_rtbootld.s: Assembler messages:
./crt/_rtbootld.s:75: Error: unknown pseudo-op: `.volatile'
./crt/_rtbootld.s:245: Error: unknown pseudo-op: `.nonvolatile'
*** Error code 1
dmake: Fatal error: Command failed for target `pics/_rtbootld.o'
Current working directory /ws/builds/igork/dg-54/usr/src/lib/libc/sparc

what is replacement for .volatile on GAS?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils