[ATrpms-users] Fwd: Ticket #6973: Text relocations in color.c and filter_greedyhdeint.c
Jean-Yves Avenard
jyavenard at gmail.com
Thu Sep 3 16:44:14 CEST 2009
Hi
2009/9/4 Brian Long <briandlong at gmail.com>:
> I guess the mythtv devs consider security bugs to be feature requests. :-|
>
> /Brian/
All code in MythTV including asm is compiled using position
independent code ; it has to be.
So the solution you suggest is not going to change anything as it's
already compiled with -fPIC ....
Here is how it's compiled with the default compilation flags:
ccache gcc -c -pipe -march=pentiumpro -fomit-frame-pointer
-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -g -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef
-fno-math-errno -fno-signed-zeros -Wno-missing-prototypes -D_REENTRANT
-DPIC -fPIC -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include
-I/usr/local/mythtv-trunk -I../../libs/libmythtv
-I../../libs/libmythdb -I../../libs/libavcodec -I../../libs/libavutil
-I../../libs -I../.. -I../../libs/libmythtv -I../../libs/libavcodec
-I../.. -I. -I. -o filter_greedyhdeint.o filter_greedyhdeint.c
ccache gcc -c -pipe -march=pentiumpro -fomit-frame-pointer
-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -g -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef
-fno-math-errno -fno-signed-zeros -Wno-missing-prototypes -D_REENTRANT
-DPIC -fPIC -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include
-I/usr/local/mythtv-trunk -I../../libs/libmythtv
-I../../libs/libmythdb -I../../libs/libavcodec -I../../libs/libavutil
-I../../libs -I../.. -I../../libs/libmythtv -I../../libs/libavcodec
-I../.. -I. -I. -o color.o color.c
Jean-Yves
More information about the atrpms-users
mailing list