Bug 12700 - "BFD_ASSERT (out_attr[Tag_ABI_HardFP_use].i == 0) " assert
Summary: "BFD_ASSERT (out_attr[Tag_ABI_HardFP_use].i == 0) " assert
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-25 13:47 UTC by Barry Song
Modified: 2011-04-25 13:47 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barry Song 2011-04-25 13:47:44 UTC
I found Jie has committed a patch
"http://sourceware.org/ml/binutils/2010-05/msg00083.html". I am using
the newest binary utils and encounted the following ASSERT in
arm_elf32.c:
+             if (out_attr[i].i == 0)
+               {
+                 BFD_ASSERT (out_attr[Tag_ABI_HardFP_use].i == 0);

My compiling options are as below,
ASM_FLAGS              :=                                                      \
                        -gdwarf-2                                             \
                        -mfpu=vfp                                             \
                        -mfloat-abi=softfp                                    \
                        -mthumb-interwork

C_FLAGS                :=                                                      \
                        $(ASM_FLAGS)                                          \
                        -O3     -Wno-all                                      \
                        -fno-optimize-sibling-calls                           \
                        -mlong-calls                                          \
                        -ffunction-sections                                   \



CPP_FLAGS             :=                                                       \
                        -fno-rtti                                             \
                        -fno-exceptions                                       \


LINK_FLAGS            :=                                                       \
                         --gc-sections -nostdlib                              \
                         -L ../stdlib                                         \
                         -Wl,--as-needed                                      \
                         -Wl,-no-enum-size-warning                            \
                         --cref                                               \

ARFLAGS                :=
        \
                             rcs

Can anyone give me any tip about why the assert is triggered?

-barry