473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

link.exe equivalent to GNU ld -Ttext flag?

ld, the GNU linker, has a flag -Ttext which lets you specify the
virtual address of the .text section in the resulting executable. Is it
somehow possible to achieve the same thing using VC++'s linker?
--
Arild

Nov 17 '05 #1
2 1508
ar*********@gmail.com wrote:
ld, the GNU linker, has a flag -Ttext which lets you specify the
virtual address of the .text section in the resulting executable. Is
it somehow possible to achieve the same thing using VC++'s linker?


/base:XXXXXXXX

-cd
Nov 17 '05 #2
/base doesn't appear to be doing the same thing. Specifying
/base:0x10000 with link.exe puts the .text section at 0x1000, making
the real address 0x11000(0x10000 + 0x1000). Using -Ttext 0x10000 leaves
the image base at the same location and gives you the value 0xFFC65536
for .text, which makes the real address 0x1000(0x400000 + 0xFFC65536 is
0x1000 since it's an unsigned 32 bit value).

--
Arild

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Craig | last post by:
Hi, What I'm trying (quite poorly) to do is make it so when a link is clicked the text inside a div or p changes. I've tried numerous things, most of which work in IE but none of which work in...
4
by: Newbie | last post by:
Is it possible to set up an event handler or something else so that when *any* link on the page is clicked it 'fires-up', executes some JS and then continues to process the link that was clicked?...
26
by: Harrie | last post by:
Hi, After Brian mentioned the use for <link rel=..> for navigational purposes in another thread, I've been looking into it and found that HTML 3.2 has two other recognized link types than HTML...
4
by: Glenn Mulno | last post by:
Off the wall question: Is there a way to set a hyperlink so that it opens the newest file in a directory? Why: I have a page that is a link to a daily set of reports. A new report gets...
5
by: Edward Mitchell | last post by:
I am trying to include two class files into a web service project. The structure I have is a top level solution and project in a folder and below that, the web service project in it's own folder. ...
2
by: **Developer** | last post by:
I've seen applications that have a Paste Special and if clicked allow either the Data to be pasted or a Link to be pasted. I'm using the RichTextBox and I'd like to implement that feature. ...
2
by: siliconwafer | last post by:
Hi All, Q.1:Is a link list of characters terminated with '\0' equivalent to a string? Q.2:If so,can we do string operations in string.h on it?How? Q.3:What is better when it comes to creating...
1
by: sri2097 | last post by:
Hi all, I have written a Link list implementation in Python (Although it's not needed with Lists and Dictionaries present. I tried it just for the kicks !). Anyway here is the code - # Creating...
17
by: Eric Lindsay | last post by:
For years I have had links to a stylesheet done like <link rel=stylesheet type="text/css" href="style.css"> and these pages all validate with the W3C validator. However in looking at W3C, I...
2
by: wpollans | last post by:
Hello, I need to able to write JS that will click on a link with the middle mouse button - so that the link target will open in a new window or tab - using firefox. Or is there a better (more...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.