Sponsored Content
Full Discussion: LD linker define symbol
Top Forums UNIX for Advanced & Expert Users LD linker define symbol Post 302181749 by lzwierko on Friday 4th of April 2008 02:28:47 AM
Old 04-04-2008
hi, thanks for answer, but actually this is just the thisng I'd like to avoid Smilie
The thing is I don't wan to have any definitions inside the code, nor change any libraries etc. I'd like to define a sybol in linker script which will be imported by linker...
I've seen the part of specs that you give a link to, symbols defined in that fashion are internal script symbols and are not exported...

thanks anyway

Ł
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Linker (ld)

hai I have installed Linux 7.0 on my system and i have an doubt the linker i ran simple hello.c program with gcc compiler gcc -c hello.c i want linker to produce the output so i put on the command line as ld first.o -lc but it is not running ver properly but there is an... (1 Reply)
Discussion started by: rajashekaran
1 Replies

2. Programming

Linker error when using vector's

using SUN C++ I have a problem when I do a push_back on a vector. The linker gives me a undefined symbol error on __cxa_end_catch. Any ideas, is there a library to include? Thanks Chris (1 Reply)
Discussion started by: CDurkin
1 Replies

3. HP-UX

dynamic linker error

Hi All Could anyone help in giving a little background to the following runtime error. /usr/lib/pa20_64/dld.sl: Mmap failed due to errno: 13. Seen when executing a 64-bit ELF executable. Thanks Ed (3 Replies)
Discussion started by: C3000
3 Replies

4. Linux

G++ Linker Error

Hi All, I m new to this group. I m facing one problem during my linking of CPP code at Linux env. after compliation i m getting error "undefined reference to ....." Please anyone help me to resolve this error. Regards, ASR make: Leaving directory /fwk' echo g++ -o server ... (1 Reply)
Discussion started by: ASRRAJ
1 Replies

5. HP-UX

Hp-ux linker option -c

Hi, The necessary symbols in a shared library can be exported to the application using linker option --version-script in Linux. The same can be done in Hp-ux using linker option +e. This can also be done by listing all the global symbols with +e in a file with linker option ld -c filename in... (0 Replies)
Discussion started by: roopa_v
0 Replies

6. Programming

GCC: Choose my own linker

Hi, I do not use the default linker, and instead us another one and pass this argument -Wl,--dynamic-linker=<path to linker> to gcc when compiling. However, what happens if the linker is not under /lib and /lib64 and I am not able to create a symlink to the linker in /lib or /lib64 due to no... (2 Replies)
Discussion started by: Shompis
2 Replies

7. Solaris

/usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found

deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies

8. Programming

gcc linker address

Hai, I have two (Pgm1.c and Pgm2.c) simple programs, which is compiled using gcc. Now we have two exe's (Pgm1 and Pgm2). When i executed the nm Pgm1 and nm Pgm2, in the listed symbols the address of main is same for both programs (08048344 T main) at run time also. Doubt: 1) What is this... (3 Replies)
Discussion started by: rajamohan
3 Replies

9. Programming

AIX linker oddities...what is going on?

I've tried to figure out what the linker is smoking in AIX to no avail...so I'm trying to find a little information to see why it's being inconsistent. I have the following code in a shared library, it doesn't do anything useful, it's just there to exercise functions in a few system libraries: ... (11 Replies)
Discussion started by: DreamWarrior
11 Replies

10. Solaris

Runtime Linker Problems ld.so.1

Hello all, I am releatively new to Solaris and I am the System administrator for my branch at the FAA. This is the first time I can say I have really messed something up thankfully. My issue came up after installing and uninstalling Oracle Secure Backup which i felt I needed to do a clean... (7 Replies)
Discussion started by: jbirkes
7 Replies
ASLINK(1)						      General Commands Manual							 ASLINK(1)

NAME
ASLINK - companion linker for the ASxxxx assemblers. SYNOPSIS
aslink [options] filenames link-gbz80 [options] filenames link-z80 [options] filenames WARNING
The information in this man page is an extract from the full documentation of SDCC, and is limited to the meaning of the options. For complete and current documentation, refer to the ASxxxx Cross Assembler Documentation, available in /usr/share/doc/sdcc-doc/aslink. DESCRIPTION
The ASLINK is general relocating companion linker for the ASxxx assemblers. MCS51 family is supported by aslink. Z80family is supported by link-z80. GBZ80 (GameBoy Z80-like CPU) is supported by link-gbz80. OPTIONS
The linker may run in the command line mode or command file modes. The allowed startup linker commands are: -c/-f command line / command file modes -p/-n enable/disable echo file.lnk input to stdout If command line mode is selected, all linker commands come from stdin, if the command file mode is selected the commands are input from the specified file (extension must be .lnk). After invoking the linker the valid options are: -i/-s Intel Hex (file.ihx) or Motorola S19 (file.s19) image output file. -z Specifies that symbol names are case sensitive. -m Generate a map file (file.map). This file contains a list of the symbols (by area) with absolute addresses, sizes of linked areas, and other linking information. -w Specifies that a wide listing format be used for the map file. -xdq Specifies the number radix for the map file (Hexidecimal, Decimal, or Octal). -u Generate an updated listing file (file.rst) derived from the relocated addresses and data from the linker. fileN Files to be linked. Files may be on the same line as the above options or on a separate line(s) one file per line or multiple files separated by spaces or tabs. -b area = expression (one definition per line) This specifies an area base address where the expression may contain constants and/or defined symbols from the linked files. -g symbol = expression (one definition per line) This specifies the value for the symbol where the expression may contain constants and/or defined symbols from the linked files. -k library directory path (one definition per line) This specifies one possible path to an object library. More than one path is allowed. -l library file specification (one definition per line) This specifies a possible library file. More than one file is allowed. -e or null line, terminates input to the linker. SEE ALSO
sdcc(1), asxxxx(1), link-z80(1), link-gbz80(1). AUTHOR
This manual page was written by Aurelien Jarno <aurel32@debian.org>, for the Debian GNU/Linux system (but may be used by others). ASLINK(1)
All times are GMT -4. The time now is 02:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy