bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28867] Mingw to generate bogus.o on French locale


From: nickc at redhat dot com
Subject: [Bug binutils/28867] Mingw to generate bogus.o on French locale
Date: Wed, 16 Mar 2022 15:16:47 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28867

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com
   Last reconfirmed|                            |2022-03-16
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at sourceware dot org   |nickc at redhat dot com
     Ever confirmed|0                           |1

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Eric Pouech from comment #0)
Hi Eric,


> after adding one letter to a string inside a .c program, compilation and
> link fails with:
> 
> /usr/lib/gcc/i686-w64-mingw32/11.2.1/../../../../i686-w64-mingw32/bin/ld:
> warning: dlls/dxdiagn/provider.cross.o: local symbol `�' has no section

Hmm, this looks like a buffer overrun problem to me...



> (the two first are generated with French locale)

I suspect that this problem is not specific to the French locale, it may
also happen with other locales too.  Not sure how significant this is at
the moment.


> - while fail.o generates the errors above

Please could you upload the fail.s and fail.o files ?


> (for the record the compiler invocation)
> 
> i686-w64-mingw32-gcc -c -o dlls/dxdiagn/container.cross.o
> /home/eric/work/wine-format/dlls/dxdiagn/container.c -Idlls/dxdiagn \
>   -I/home/eric/work/wine-format/dlls/dxdiagn -Iinclude
> -I/home/eric/work/wine-format/include \
>   -I/home/eric/work/wine-format/include/msvcrt -D__WINESRC__ -D_UCRT
> -D__WINE_PE_BUILD -Wall \
>   -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body
> -Wignored-qualifiers -Winit-self \
>   -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes
> -Wtype-limits \
>   -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith
> -Wlogical-op -Wabsolute-value \
>   -fno-omit-frame-pointer -gdwarf-4 -g -O2

Are you able to capture the linker command line that gcc invokes ?
If you can tell us that as well, it might help.


> binutils.x86_64   2.37-10.fc35              

Are you able to test with binutils 2.38 (available in rawhide) ?

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]