Wind River Support Network

HomeDefectsLIN9-5615
Fixed

LIN9-5615 : CLONE - bridge-utils Issue

Created: Oct 18, 2017    Updated: Dec 9, 2019
Resolved Date: Oct 26, 2017
Previous ID: LIN6-13911
Found In Version: 9.0.0.10
Fix Version: 9.0.0.12
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: unknown

Description

Integrate a fix on the bridge-utils. The bridge-utils is a generic cross-compile issue and should be looked at by standard product. It is not picking up the target CFLAGS when compiling the lib-bridge portion of the code but the brctl portion is. 

The Makefile also uses the host “ar” tool when it should be using the ar from the target toolchain. Due to the target CFLAGS from bitbake not being used it won’t ever pick up the “pie” flags for ASLR that were added. The customer made a small patch to allow the Yocto CFLAGS to get picked up but he didn’t address the AR issue. 

Patch used is below. 

Index: bridge-utils-1.5/libbridge/Makefile.in 
=================================================================== 
--- bridge-utils-1.5.orig/libbridge/Makefile.in 
+++ bridge-utils-1.5/libbridge/Makefile.in 
@@ -5,7 +5,7 @@ AR=ar 
RANLIB=@RANLIB@ 

CC=@CC@ 
-CFLAGS = -Wall -g $(KERNEL_HEADERS) 
+CFLAGS += -Wall -g $(KERNEL_HEADERS) 

prefix=@prefix@ 
exec_prefix=@exec_prefix@

Other Downloads


Live chat
Online