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

--- Comment #6 from Renlin Li <renlin.li at arm dot com> ---
I create a test case to show the bug.

arm-none-eabi-gcc main_arm.c -O2 -march=armv7-a -mfloat-abi=softfp
-specs=aprofile-validation.specs -c -o main_arm.o
arm-none-eabi-gcc  -O2 -mthumb -march=armv7-a -mfloat-abi=softfp
-specs=aprofile-validation.specs -c foo_arm.c -o foo_arm.o
arm-none-eabi-gcc  -O2 -mthumb -march=armv7-a -mfloat-abi=softfp
-specs=aprofile-validation.specs -c foo_thumb.c -o foo_thumb.o

arm-none-eabi-gcc main_arm.o foo_thumb.o foo_arm.o
-specs=aprofile-validation.specs  -o main.exe  -Wl,--allow-multiple-definition

In this case, we would expect in main.exe, the function get called is the thumb
version, and BLX is used to do the function call.

But BL is used to call the thumb function.
I have checked weak symbol and dynamic symbol are properly handled.

-- 
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

Reply via email to