1753706 Members
4775 Online
108799 Solutions
New Discussion юеВ

Itanium linker

 
Malleka Ramachandran
Frequent Advisor

Itanium linker

This sounds so silly but I don't understand why the following link command fails on Itanium.


$ libr/lis/fu/names/only=vm$$_malloc [ndm.3301dev.ndm.images]NDM3301.OLB/lo
Directory of ELF OBJECT library DKA100:[NDM.3301DEV.NDM.IMAGES]NDM3301.OLB;1 on
2-AUG-2006 13:01:38
Creation date: 2-AUG-2006 11:16:39 Creator: Librarian I01-29
Revision date: 2-AUG-2006 11:23:59 Library format: 6.0
Number of modules: 356 Max. key length: 1024
Other entries: 2369 Preallocated index blocks: 213
Recoverable deleted blocks: 0 Total index blocks used: 259
Max. Number history records: 20 Library history records: 20

Module VM$$_MALLOC Ident V1.0 Inserted 2-AUG-2006 11:23:57 2 s
ymbols

VM$$_CFREE
VM$$_FREE

$ lin testalloc,[ndm.3301dev.ndm.images]NDM3301.OLB/lib
%ILINK-W-NUDFSYMS, 1 undefined symbol:
%ILINK-I-UDFSYM, VM$$_MALLOC
%ILINK-W-USEUNDEF, undefined symbol VM$$_MALLOC referenced
section: $CODE$
offset: %X0000000000000130 slot: 2
module: TESTALLOC
file: DKA100:[MALLEKA.EXAMPLES]TESTALLOC.OBJ;1
$ typ/page testalloc.c
struct queue

{
unsigned int f_link ;
unsigned int b_link ;
} ;


/* */
/* Queue Entry */
/* */
struct entry

{
struct queue link ;
unsigned char pqe [ ] ;
} ;
static int pqe_entry_size =0;
main(int argc, char **argv[]) {
struct entry *pqe_entry;

pqe_entry = vm$$_malloc ( pqe_entry_size );
}
4 REPLIES 4
Malleka Ramachandran
Frequent Advisor

Re: Itanium linker

Please disregard this message, I know what is wrong.
Ian Miller.
Honored Contributor

Re: Itanium linker

Malleka,
for our collective education can you say what the problem was ?
____________________
Purely Personal Opinion
Kris Clippeleyr
Honored Contributor

Re: Itanium linker

Re: Ian

Me thinks that the module VM$$_MALLOC, defines the functions VM$$_CFREE and VM$$_FREE, but not the function VM$$_MALLOC itself (just guessing from the info provided by Malleka).

Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Malleka Ramachandran
Frequent Advisor

Re: Itanium linker

Ian,

The problem was that the routines in VSS_MALLOC had each coditional compilation for VAX and Alpha. It was being updated by another person to include the ia64. I thought that this had already been done and tried to link but the object modules were apparently empty.