- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: size and objdmp command output
Operating System - HP-UX
1752583
Members
5007
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2009 03:46 AM
тАО09-11-2009 03:46 AM
size and objdmp command output
Hi ,
I am trying to analyse and reduce the memory taken by application
If i do size on object file a.o
it shows me
text data bss dec hex filename
675579 633574 0 1309153 13f9e1 a.o
I want to know what constitutes data
So i am using nm/objdump command
But if i sum the size i do not get to 633574.
How do i map data section with program variables . Even with objdmp i am not getting much info.
[charaka][FC102B2BT1]/users3/e51569> grep "OBJ.*GLOB" | grep data <
[82] | 0| 8|OBJT |GLOB |0| .data|_ZTI13ISerializable
[91] | 0| 8|OBJT |GLOB |0| .data|_ZTI15IHashListErrors
[93] | 0| 12|OBJT |GLOB |0| .data|_ZTI15IListCollection
[88] | 0| 32|OBJT |GLOB |0| .data|_ZTI20IPowerHashVectorList
[85] | 0| 12|OBJT |GLOB |0| .data|_ZTI9IHashable
I am trying to analyse and reduce the memory taken by application
If i do size on object file a.o
it shows me
text data bss dec hex filename
675579 633574 0 1309153 13f9e1 a.o
I want to know what constitutes data
So i am using nm/objdump command
But if i sum the size i do not get to 633574.
How do i map data section with program variables . Even with objdmp i am not getting much info.
[charaka][FC102B2BT1]/users3/e51569> grep "OBJ.*GLOB" | grep data <
[82] | 0| 8|OBJT |GLOB |0| .data|_ZTI13ISerializable
[91] | 0| 8|OBJT |GLOB |0| .data|_ZTI15IHashListErrors
[93] | 0| 12|OBJT |GLOB |0| .data|_ZTI15IListCollection
[88] | 0| 32|OBJT |GLOB |0| .data|_ZTI20IPowerHashVectorList
[85] | 0| 12|OBJT |GLOB |0| .data|_ZTI9IHashable
- Tags:
- size
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2009 04:48 AM
тАО09-11-2009 04:48 AM
Re: size and objdmp command output
You should not be using foreign devil linker tools. Stick with the ones in /usr/ccs/bin.
>I want to know what constitutes data
Anything that is R/W and initialized.
>But if I sum the size I do not get to 633574.
Why would expect this? There is padding and alignment. And static variables with no names.
You may be able to get an estimate by:
nm -xv # -v to sort by value
elfdump has options to dump sections:
elfdump -S -h
>How do I map data section with program variables?
Just look at the symbols in the various data areas: .data, .sdata, etc.
.data 00000000 .data
.data 00000008 typeinfo X
.data 00000070 vtable for X
.data 0000000c typeinfo for Y
C++ class metadata.
>I want to know what constitutes data
Anything that is R/W and initialized.
>But if I sum the size I do not get to 633574.
Why would expect this? There is padding and alignment. And static variables with no names.
You may be able to get an estimate by:
nm -xv # -v to sort by value
elfdump has options to dump sections:
elfdump -S -h
>How do I map data section with program variables?
Just look at the symbols in the various data areas: .data, .sdata, etc.
.data 00000000 .data
.data 00000008 typeinfo X
.data 00000070 vtable for X
.data 0000000c typeinfo for Y
C++ class metadata.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2009 11:06 PM
тАО09-12-2009 11:06 PM
Re: size and objdmp command output
On IBM platform same .o is occupying less size
size -f a.o
bauu9535.o: 20112(.text) + 45984(.data) + 0(.bss) = 66096
size -f a.o
bauu9535.o: 20112(.text) + 45984(.data) + 0(.bss) = 66096
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2009 11:55 PM
тАО09-12-2009 11:55 PM
Re: size and objdmp command output
>On IBM platform same .o is occupying less size
You can't compare object files, you must compare shlibs. (HP-UX has a lot of duplicate template info that is removed at link time.)
You can't compare object files, you must compare shlibs. (HP-UX has a lot of duplicate template info that is removed at link time.)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP