PATH included in .o file of device driver


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users PATH included in .o file of device driver
# 1  
Question PATH included in .o file of device driver

Hello friends,

I am building one driver related to wifi. When I am looking its hex dump, I can see that it is including a path to one particular file of kernel headers. It is as under.
Code:
    6C 75 65 2E 0A 00 00 00 25 64 2E 25 64 2E 25 64   lue.....%d.%d.%d
    2D 25 73 00 00 00 00 00 42 45 54 41 00 00 00 00   -%s.....BETA....
    2F 68 6F 6D 65 2F 73 61 6E 64 62 6F 78 2F 63 65   /home/sandbox/ce
    2F 63 6F 6D 6D 6F 6E 2F 73 77 2F 30 31 2E 32 34   /common/sw/01.24
    2F 74 72 75 6E 6B 2F 6B 65 72 6E 65 6C 2F 69 6E   /trunk/kernel/in
    63 6C 75 64 65 2F 6C 69 6E 75 78 2F 6E 65 74 64   clude/linux/netd
    65 76 69 63 65 2E 68 00 75 73 62 2D 25 73 2D 25   evice.h.usb-%s-%
    73 00 00 00 49 78 4F 53 4C 69 6E 75 78 55 53 42   s...IxOSLinuxUSB
    2E 63 00 00 49 58 5F 53 54 41 54 55 53 5F 58 46   .c..IX_STATUS_XF
    45 52 5F 41 42 4F 52 54 45 44 0A 00 2F 68 6F 6D   ER_ABORTED../hom
    65 2F 73 61 6E 64 62 6F 78 2F 63 65 2F 63 6F 6D   e/sandbox/ce/com
    6D 6F 6E 2F 73 77 2F 30 31 2E 32 34 2F 74 72 75   mon/sw/01.24/tru
    6E 6B 2F 6B 65 72 6E 65 6C 2F 69 6E 63 6C 75 64   nk/kernel/includ
    65 2F 6C 69 6E 75 78 2F 6E 65 74 64 65 76 69 63   e/linux/netdevic
    65 2E 68 00 2F 68 6F 6D 65 2F 73 61 6E 64 62 6F   e.h./home/sandbo
    78 2F 63 65 2F 63 6F 6D 6D 6F 6E 2F 73 77 2F 30   x/ce/common/sw/0
    31 2E 32 34 2F 74 72 75 6E 6B 2F 6B 65 72 6E 65   1.24/trunk/kerne
    6C 2F 69 6E 63 6C 75 64 65 2F 6C 69 6E 75 78 2F   l/include/linux/
    6E 65 74 64 65 76 69 63 65 2E 68 00 00 00 00 00   netdevice.h.....
    01 00 00 00 01 00 00 00 00 00 00 00 04 00 00 00   ................
    08 00 00 00 06 00 00 00 00 00 00 00 46 65 62 20   ............Feb
    31 31 20 32 30 31 31 00 31 2E 30 00 57 69 72 65   11 2011.1.0.Wire
    6C 65 73 73 20 4C 41 4E 00 00 00 00 3C 68 69 64   less LAN....<hid
    64 65 6E 3E 00 00 00 00 2F 68 6F 6D 65 2F 73 61   den>..../home/sa
    6E 64 62 6F 78 2F 63 65 2F 63 6F 6D 6D 6F 6E 2F   ndbox/ce/common/
    73 77 2F 30 31 2E 32 34 2F 74 72 75 6E 6B 2F 6B   sw/01.24/trunk/k
    65 72 6E 65 6C 2F 69 6E 63 6C 75 64 65 2F 6C 69   ernel/include/li
    6E 75 78 2F 6E 65 74 64 65 76 69 63 65 2E 68 00   nux/netdevice.h.

Is it okay if .obj includes path of kernel headers? What can I do to remove it? What are the possible reasons?



Thanks.

Last edited by Scott; 02-14-2011 at 04:06 PM.. Reason: Please use code tags for code, data files, terminal output, etc.
# 2  
It might just because it's being built with debugging information. If you're building it the proper way, I don't think it matters as these files won't be required at runtime.
# 3  
Hi, I am building it with arm-elf-gcc compiler. I removed -g in arm-elf-gcc and arm-elf-strip command, even more I gave --strip-all option in arm-elf-strip but still I can see those paths.

any other ideas?
# 4  
Well, does it work? If it does you may be worrying about nothing.
# 5  
What's in the header file? There's probably a constant defined in the file that then shows up in the compiled object file.

Even something like __FILE__ will cause that.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #313
Difficulty: Easy
The programming language Python is based on a modified version of JavaScript.
True or False?

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Command to see the logical volume path, device mapper path and its corresponding dm device path

Currently I am using this laborious command lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}' Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies

2. Programming

regarding device driver

Hi All, I have a device driver that uses UARTserial port to write/read to-from a device. That device driver is working fine on FC3 machine( kernel version 2.6.12)... Now I am switching to FC9 (kernel version 2.6.25.11-97).I have changed the interrupt flag SA_INTERRUPT to IRQF_DISABLED... (0 Replies)
Discussion started by: rajuprade
0 Replies

3. Solaris

SUNWglmr -- rasctrl environment monitoring driver for i2c or SCSI device driver ?

I've been researching minimizeing Solaris 8 and found that on the web page http://www.sun.com/bigadmin/content/packagelist/s8u7PkgList/p2.html the package SUNWglmr is listed as "rasctrl environment monitoring driver for i2c, (Root) (32-bit)" while in the document "Solaris 8 minimize-updt1.pdf"... (1 Reply)
Discussion started by: roygoodwin
1 Replies

4. SCO

tape drive driver device file

i have a sco-unix box. I want to access tape driver (sdt-700) on scsi. but i dont know how? where is this device file for tape driver is located? how do i access this tape? pls help this fool. (1 Reply)
Discussion started by: mchitrakar
1 Replies

Featured Tech Videos