Wind River Support Network

HomeOther DownloadsHLTS-239: wrlinux4.3 cav_octeon2 gcc: inlined function cause variable initialization error
Recommended Type: Binary Patch

HLTS-239: wrlinux4.3 cav_octeon2 gcc: inlined function cause variable initialization error

Released: Nov 1, 2018     Updated: Nov 1, 2018

Description

1. Customer's project configuration, they use the latest RCPL 32

/home/zoge/wrlinux43/wrlinux-4/wrlinux/../ldat/configure --enable-board=cav_octeon2 --enable-kernel=standard --enable-rootfs=glibc_small --enable-jobs=32 --enable-parallel-pkgbuilds=8 --with-product-dir=/home/zoge/wrlinux43/wrlinux-4/wrlinux --with-template=feature/build_libc

2. compile the test source code:

mips64_n32_octeon-target-linux-gnu-gcc -I/home/liqiduan/br_AR_SDWAN_V3R3C00_TR5-3_CAPMerge/external/thirdparty/cavium/sdk2.1/include -I/home/liqiduan/br_AR_SDWAN_V3R3C00_TR5-3_CAPMerge/product/ar/app/common/bsp/bsp/common/driverRegister -I/home/zuogang/cap_leibniz/src/cap/pub/src/include -DVOS_OS_VER=4 -DVOS_HARDWARE_PLATFORM=3 -DVOS_CPU_TYPE=12 -DCAP_PATCH_ENABLE=1 -DCONFIG_CAP_ARCH_MIPS=1 -DCONFIG_CAP_BIG_ENDIAN=1 -DCAP_HARDWARE_TIMER -DCAP_RELEASE -O2 -DCAP_BUILD_32BIT -DBOARD_AR2240 -DOCTEON_MODEL="OCTEON_CN54XX" -DCAP_CPU_ARCH_MIPS -DCAP_CPU_TYPE_CAVIUM -I/home/zuogang/cap_leibniz/src/cap/mss/arch/mips/cavium -DCAP_BUILD_LINUX_USER -DCAP_BUILD_MIPS_LINUX -DI_AM_FWD -Wno-strict-aliasing -Wall -Wformat -Wfloat-equal -Wshadow -D_FORTIFY_SOURCE=1 -fstack-protector -fmessage-length=0 -fno-common -fno-unit-at-a-time -g -I/home/zuogang/cap_leibniz/src/cap/mss/ -I/home/zuogang/cap_leibniz/src/cap/mss/include -I/home/zuogang/cap_leibniz/src/cap/mss/util -I/home/zuogang/cap_leibniz/src/cap/msc/include -I/home/zuogang/cap_leibniz/src/cap/../fwd/include -I./msu/fsvc -MMD -c -o test.o err-demo.c

3. disassemble

`zoge@VM1-Z00234794:~/workfolder/kernel/build-1382$ mips-linux-gnu-readelf -s -W ~/workfolder/test/trest.o | grep FSVC_Egr_L4ACL

122: 00000b30 1504 FUNC GLOBAL DEFAULT 1 FSVC_Egr_L4ACL

zoge@VM1-Z00234794:~/workfolder/kernel/build-1382$mips-linux-gnu-objdump -d -l --start-address=0xb30 --stop-address=0x1110 trest.o >d.txt `


Product Version

Wind River Linux 4
Live chat
Online