General :: Control The Segment Selector Assigned To A Section?

May 30, 2010

I see from dumping executables that seg selector 0x10 is assigned to my stack segment and to my data segments (.bss .data COMMON). The code is using 0x08. My question - how can I control this? I've looked at all the command line options and don't see it. I have a different program that uses 0x10 for code and 0x18 for data. I note that the second program has i386 in the architecture field in the linker script, whereas the first one referenced has i686. Is this what causes the difference? I understand that this architecture field triggers something regarding a library named BFD - is this where I should look? If so, where do I find it? I am runnig fedora. Is there a way to control the association of sections in the linker script with segment registers? I can set up segments in the gdt and can asign them to segment registers. I can - when writing in assembler - assign code to a section. I can relate a segment in the gdt with a register.But I dont see how to tell the section which segment register it is associated with Finally I see that the gcc compiler decides - based on how I initialize a variable - whether to put it into bss or data or COMMON. Do I have any control over this?

View 1 Replies


ADVERTISEMENT

Server :: Control Which Drive Letter USB Thumb Drive Gets Assigned During Install Process?

Mar 30, 2010

The software: Ubuntu Server Edition 9.10.The wetware: A programmer doing his best (read: ignorant, shitty) as an ad-h.When I plug the USB thumb drive in, the install OS gives it a drive letter -- /dev/sdb -- and it pushes the original /dev/sdb down to /dev/sdc. The installation works without a hitch, and GRUB2 installs, dutifully pointing the root at /dev/sdc1 instead of /dev/sdb1.I let GRUB2 start normally ("drive not found"), holding the <shift> key to get to the "rescue>" prompt.From there, I issue "ls" to discover that GRUB can NOT see /dev/sdb, and I can tell that because what is showing up as (hd1) does NOT have three partitions as it should.GRUB2 sees a total of 16 drives, not 26, and one of the drives it sees is "fd0" (there is no floppy drive).Issuing commands like "set prefix=(hdx,y)" and "root=(hdx,y)" have no effect as, I think it's just pointing to the (reiserfs)content drives and this GRUB2 tells me "unknown filesystem".I did try them all in vain, hoping that maybe I'd find a kernel somewhere.I used the "rescue" mode of the Ubuntu installer (the USB thumb drive) to get to a root prompt.From there, I mounted /dev/sdc2 (the "shifted" /dev/sdb2) onto /mnt, I mounted /dev/sdc1 (the "shifted" /dev/sdb1) onto /mnt/boot,and then I chroot'ed to /mnt.I edited /boot/grub/grub.cfg, editing every instance of "root=(hd2,1)" to the appropriate UUID for the "real" /dev/sdb1. Then I issued update-grub2.It refused to work giving me an banal "no such partition" error or something like that.

We originally had this server functioning by putting / and /boot on the SS SanDisk, which caused no problems during installation because /dev/sda doesn't get shifted.We then figured it was a good idea to put our OS files on something with failover capability. And that started us down this crappy "shifting drive letter" path.Can I control which drive letter the USB thumb drive gets assigned during the install process?If I could make it be /dev/sdc then I wouldn't be facing this problem.An alternate solution would be to know the cryptic GRUB2 commands that I can issue from the command prompt post-install, pre-reboot.But I'm wondering if that will ultimately work at all considering that GRUB2 couldn't see /dev/sdb at all.

View 2 Replies View Related

General :: Allow Telnet From One Ip Segment?

Mar 8, 2010

I want to allow only ip segment(212.154.75.0/24) to telnet the server(RHEL-7.3).How this can be done using iptables?In the server i gave this command:

# iptables -I FORWARD -s 212.154.75.0/24 -p tcp --dport 23 -j ACCEPT
output is
0 0 ACCEPT tcp -- * * 212.154.75.0/24 0.0.0.0/0 tcp

[code]....

View 3 Replies View Related

OpenSUSE Install :: Immutable Section Of HDD + Differencing Section?

Jul 8, 2010

You maybe know that VirtualBox has an "immutable" feature for HDD images. I.e. setup the system, if the stuff is in place, you can set the image to IMMUTABLE to prevent any changes to the image. Differences are written to a separated image. So on the next boot you'll see that all the (unintended) changes are gone and the "old" system is up & running again. I run an old SuSE 10.3 on a write-protected SD-IDE-Adapter. Changing and playing with RPMs is a mess due to around 50 changes I had to do to make that work. Is there any option to mount an SD-card as RO and having all the changes written to e.g. /dev/sda3? To make it clear: I thought about something like a RAID-X system, but could not find any description on how to setup a raidtab.

View 3 Replies View Related

General :: Determine How Much Quota Is Assigned To A User?

Nov 13, 2009

We have quota system in home directory and there is binary aquota.user file.

How do i determine how much quota is assigned to a user?

View 1 Replies View Related

General :: Maximum Number Of IPs That Can Be Assigned To A Given Computer?

Jan 11, 2011

I really need to know this for a linux server, but since it also applies to client OSes, I figured the question should be posed here instead of server fault.

View 3 Replies View Related

General :: Get Assigned Ip From Server It Does Not Get Ip Instead Random Ip Is Provided?

Apr 26, 2010

when i assign ip manually to a machine it gets ping by server and it also itself pings server but when i chose to use client machine as dhcp , so that it can directly get assigned ip from server, it does not get ip, instead random ip is provided which is out of range specified at server side in /etc/dhcpd.conf file.

View 2 Replies View Related

General :: Two DHCP IP Assigned To A Single Machine?

Apr 16, 2010

I just installed Fedora 13 on my ESX box.I have Fedora 13 Machine which was early having 1 network adapter.I added a new Interface type: e1000 to this VM.Now,My ifconfig says:

Code:

[root@fedora-13 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:BA:00:15
inet6 addr: fe80::250:56ff:feba:15/64 Scope:Link

All i was trying to provide IP to eth0 and eth1 through dhcp.is it possible to provide two IP address to eth0 and eth1 both through DHCP.

View 4 Replies View Related

General :: Two IP Addresses Could Never Be Assigned To Any Host Computer?

Nov 16, 2010

Could you tell me what two IP addresses could never be assigned to any host computer?

View 2 Replies View Related

General :: Ifconfig Alias Address Assigned By DHCP

Aug 13, 2010

I would like to create several aliases to eth0, but have the addresses assigned by DHCP instead of being set to static IP's. Is this even possible? All the examples I've seen assign a static IP using the command:
ifconfig eth0:0 192.168.1.11 up

View 5 Replies View Related

General :: View User Admins Assigned In Group

Nov 29, 2010

Once you add a user(s) to be an administrator on the group you've created using gpasswd command (for example, i've added joe (username) as administrator for payroll (groupname) group using gpasswd); is there any way for me to view the list of users that I've assigned as administrators for a particular group? if so, what is the command line that i need to run?

View 2 Replies View Related

General :: Radio & TV Web Site Can't Start On IE With Proxy Assigned

Jul 10, 2009

I install Redhat9 and run proxy(squid) on this server. I test with a PC with IE put it proxy ip address any other web site is working fine but not for radio&TV channel online, i found many radio and TV online web site can not start to play after click the link.Please anybody help to advice what should i check on squid?

View 1 Replies View Related

Networking :: Squid With Multiple IP Segment?

Jan 13, 2011

I've setup Squid - DHCP - Transparent Proxy with the following
eth0 = connected to internet
eth1 = connected to lan. (192.168.1.1)

[code]....

View 5 Replies View Related

Red Hat :: Yum Failed To Map Segment From Shared Object?

Apr 13, 2010

I've got a redhat 5.5 machine which is supposedly up-to-date according to RHN. When I try to do anything with yum, I get the following error:

Code:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

[code]...

View 4 Replies View Related

General :: Sed/awk - Remove Section From File

Oct 26, 2010

I have a file like this:

I would like to remove a section between [first] and [second]:

Is almost what I want. I would like the section header to say in place.

Desired output:

View 3 Replies View Related

General :: What Is (1xx 0, 2xx 8, 3xx 0, 4xx 3, 5xx 0) In Logwatch Httpd Section

Nov 27, 2010

In this part of logwatch:

Code:
--------------------- httpd Begin ------------------------
0.12 MB transferred in 11 responses (1xx 0, 2xx 8, 3xx 0, 4xx 3, 5xx 0)

[code]....

View 2 Replies View Related

General :: Executing The Default Application Assigned To A File Type?

Dec 10, 2010

Using gnome terminal (Ubuntu 10.10), is there a way to execute the default application associated to a file type, only by typing its name, as it is possible with Windows ?

For example, say I create a mime type associated to every file with the pattern *.abc. Lets say I associate this file type to application 'my_app'.

If I have file 'my_file.abc' in current folder, what I want is that when I enter only 'my_file.abc' at the prompt, it executes 'my_app' feeding it with 'my_file.abc' as first argument. (assuming of course 'my_app' is in the path)

View 3 Replies View Related

General :: Evolution 2.28.3 Message Filters Not Filtering To Assigned Folders?

May 27, 2010

I have created custom rules following: edit > message filters > incoming filter > (custom filter), none work. Also, by right clicking a message and, create rule from message > filter based by subject, sender, and recipients. Accepting all default (auto populated) conditons. None of the filters work at all? Seems this is a popular problem that has not found a solution except to use Thunderbird. not including ThunderbirdWhen I select a message that is supposed to be filtered to a specific folder and go to Message > Apply Filters. message goes to the assigned folder, but I want it to skip the inbox all together.

View 5 Replies View Related

General :: Mouse Button Numbers Assigned In Mint / Ubuntu?

Nov 25, 2010

I just bought a new mouse - just a cheapie usb wheel mouse but it has an extra 'thumb' button which I thought I might as well set up to do something useful. I used 'xev' to determine the numbers that the OS had assigned to the buttons, and I found it wasn't quite what I was expecting:

left = 1
wheel-as-button = 2
right = 3
wheel-up = 4
wheel-down = 5
thumb = 8

I thought the right button would be '2' and the 'wheel-as-button' would be 3 - that's just how I've always seen them referred to in explanations, and I thought it was standardised. Not a big deal - the context menus still pop up when I click the right button so it all works ok. (And I just discovered the wheel-as-button does a 'paste' operation when it's clicked. Weird - I've never noticed that before...) But the thing that I find particularly odd: why is the thumb button assigned as '8'. What happened to '6' and '7'? Does the operating system assign these numbers, or are they built into the hardware in the mouse itself? Again, no big deal, I know I can remap the buttons if I need to, but I was just curious as to how this all works and google didn't help.

View 2 Replies View Related

General :: Inquiry:recognize The Assigned Device For Attached Usb Memory?

Dec 21, 2009

I have attached usb memory to my Linux server and I want to add it to my /etc/fstab .Can you please let me know how can I recognize it from my"/dev/?" list ?

View 14 Replies View Related

Server :: Two RHEL 5.4 Clusters On Same Network Segment?

Jul 23, 2011

Two years ago, I have set up two node Active-passive cluster on VSphere 4.0 and it is in production ever since.

I've tried to setup another cluster for testing purposes on the same VSphere, and failed. And what is interesting is that those new two nodes came up with cluster.conf of the production cluster, even though I did not try to bring them in the existing production cluster. I googled a bit and found something stating that two different clusters might behave strane if on the same network segment. Question is, did anyone try to create two different clusters on the same hardware, or on the same network VLAN?

I will do some more digging after weekend, and get back to you.

View 1 Replies View Related

General :: Section '.bss' Type Changed To PROGBITS

Oct 30, 2010

What does the warning 'section XXX type changed to PROGBITS' mean, and how do I avoid it? I'm compiling some code to run on a sub-processor, and I'm getting this warning during the linking stage.

View 2 Replies View Related

General :: Direct To The Success Stories Section?

Mar 3, 2010

I am having a hard time locating the Success Stories area here.

View 3 Replies View Related

General :: Showing Section In Files That Have Different Names?

Mar 3, 2010

I am running a bash script and I would like a command that will show me what differs from some files with similar names so I can delete them. Or if you can provide some info on how to complete my script. Here is my code:

#!/bin/bash
pwd=SOURCE
#Add extension into the name

[code]...

View 1 Replies View Related

General :: Display Status Of Assigned & Free Ip Addresses In A DHCP Range?

Jul 24, 2010

how to display status of assigned & free ip addresses in a DHCP range assuming that i am working on a DHCP server ?

View 1 Replies View Related

General :: Attribute Is Assigned To Executable Programs That Are Not Carefully Designed"?

May 18, 2011

Does linux kernel 2.6 support suid & guid?. I just read somewhere that "latest linux kernels does not support suid & guid as it can pose a security risk if the setuid attribute is assigned to executable programs that are not carefully designed". I need a confirmation about what I say is correct or if not please correct me.

View 6 Replies View Related

Debian Hardware :: DacMagicXS 2.0 - CA Clock Selector?

Sep 9, 2015

I have had my USB DAC, the aforementioned, working before in Ubuntu, Xubuntu, Fedora, Linux Mint 17.1 and Linux Mint 17.2. I've finally settled on Debian with i3wm as I feel I am now at a stage with Linux where I'm comfortable enough to use it.

It may be something to do with audio output being handled by Pulse, but this was the case in *buntu as well, as I used the Pulse config file to up the maximum bitrate output to take full advantage of the DAC.

On Debian (Stretch), I'm getting this when I select the device in AlsaMixer:

As can see, it is operating in USB 2.0 mode, which is correct.

View 7 Replies View Related

Ubuntu :: Windows 7 Boot Selector Timeout?

Jun 24, 2010

So I'm dual booting Windows 7 and Lucid. Thinking I might shorten the timeout for the bootloader (I apologize if my terminology's off), I ran bcdedit and changed the timeout to 0. Little did I know this would prevent my computer from booting into either operating system.

I've got Lucid running off a live cd now; does anyone know how I could change the timeout back from there (or any other way!) and get my laptop working again?

View 2 Replies View Related

Ubuntu Installation :: How To Edit The Os Selector Countdown

Dec 14, 2010

I installed Ubuntu 10.4 using wubi from XP. For some reason wubi didnt increase the countdown time on the windows os selector. My P.C. came with a recovery partition, so the os selector has always poped up on startup, but the timer was set to 5sec.(probably to avoid annoyance). Is there a way to edit this so I can have more time to select my option? This is the windows os selector and Ubuntu is on a separate(second) hard drive.Ubuntu version: 10.04 LTS- the Lucid LynxWindows version: Xp servicepack 2Machine: Hp Pavilion a1677c

View 4 Replies View Related

Ubuntu :: Language-selector-common Not Configured Yet?

Apr 19, 2011

When I try to install packages, I always got an error:

"
Errors were encountered while processing:
language-selector-common

[code]....

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved